Basically, I am trying to implement a browser based chat client like Gmail.
I am using orbited to establish ejabberd c2s connection, The problem that I am currently facing is.
all logins happen for the same resource i.e. for "rishav@rishav-laptop/Orbited" thus when doing it from multiple tabs it closes the session for the previous tab and so on, ( I fixed it by changing the dynamic resource something like "Orbited1231231232423" attached with a timestamp for each tab )
How can login from the same resource multiple times? is it even possible ? Is there a better solution ?
Thanks
Rishav
XMPP requires each session different resource
> How can login from the same resource multiple times? is it even possible ?
Not possible, because XMPP says that each client session to an account must use a different resource.
> I fixed it by changing the dynamic resource something like "Orbited1231231232423" attached with a timestamp for each tab.
I think that if you don't set any resource at all, ejabberd will assign a random one.