Is it possible to open and authotrize stream, perform common messaging, send unavailable presence and then without closing stream authorize as new user?
multiple jids on one stream
Is it possible to have more than one jid authorized on one stream and receiving/sending messages?
With a standard XMPP stream, the answer is “no” to both questions. However, we’‘re working on a new XMPP extension that will allow multiple sessions on a single stream. Basically, you’‘ll be able to have connection managers aggregate many connections into one for scalability purposes. Check out the Pampero forum for more info. I’‘m not sure if this is what you’‘re looking for, but it’'s the closest I can think of.
If you don’'t mind ‘‘re-writing’’ your client then maybe the best way forward would be to change it to a component.
Basically a component authenticates for an entire domain (has to be a subdomain of your server domain). Then the component can send and receive messages and subscriptions from any address on that domain.