The XMPP spec states that the client should broadcast presence upon connecting to an XMPP server. Strophe has two methods to "connect" to an XMPP server: connect and attach. Connect does a full authorization and attach is for reconnecting to a pre-existing connection. When using attach, should the client broadcast presence to the server?
In my testing, it appears that if I do not broadcast presence on attach, the client does not receive messages (presence, message, or otherwise) from other users, and if the client attempts to send any stanzas, he is immediately disconnected by the server. It's as if the server has no idea the user is connected without the presence broadcast.
This seems as if I answered my own question, however, I'm wondering if there is perhaps a bug in the server or if I'm doing something wrong or is this expected behavior?