Prebind session not working properly with converse.js (strophe.js)

534 views
Skip to first unread message

Harisankar P S

unread,
Oct 22, 2013, 4:40:06 AM10/22/13
to prosod...@googlegroups.com
Hi there, 

I am using prosody in my rails application and I use converse.js (conversejs.org) for the frontend. When i try to log in to the system directly from this conversejs, the chatting works fine. But when i try to do the same using a the information from predbind (such as sessionid, jabberid, etc). The chat works, i can send chats and it is received in the other end, but the roaster won't get updated, and everyone will appear offline. 

Also unless I am the one who initiated the chat, the chat won't work.

It seems the same issue exist for others who try the same combo as well (converjs + prosody), I tested and tried if the issue was with converse.js but it doesn't seems to be so. (https://github.com/jcbrand/converse.js/issues/65). 

Could you guys suggest, what could be the reason for this issue and a possible solution. 


regards, 

--

Matthew Wild

unread,
Oct 28, 2013, 12:31:18 AM10/28/13
to Prosody IM Users Group
Hi,

On 22 October 2013 09:40, Harisankar P S <mai...@hsps.in> wrote:
> Hi there,
>
> I am using prosody in my rails application and I use converse.js
> (conversejs.org) for the frontend. When i try to log in to the system
> directly from this conversejs, the chatting works fine. But when i try to do
> the same using a the information from predbind (such as sessionid, jabberid,
> etc). The chat works, i can send chats and it is received in the other end,
> but the roaster won't get updated, and everyone will appear offline.

Sorry for the delay in replying, I'm still catching up on email after
attending the XMPP summit last week.

The symptoms sound like Prosody doesn't consider the resource
'available' - you (converse.js) needs to send available presence when
you connect.

If you think you are doing this, debug logs from Prosody would be very helpful.

Regards,
Matthew
Reply all
Reply to author
Forward
0 new messages