librelist archives

« back to archive

Prebind

Prebind

From:
Daniel García Páez
Date:
2014-05-28 @ 20:53
Can anyone give me an example for pre-binding? I want to make auto-login
from my web-page (in jsp) but I don't know how to make the connection for
getting the JID, RID  and SID?

Thanks, Dani.

Re: [conversejs] Prebind

From:
Jc Brand
Date:
2014-05-30 @ 12:57
On Wed, May 28, 2014 at 10:53:44PM +0200, Daniel García Páez wrote:
>    Can anyone give me an example for pre-binding? I want to make auto-login
>    from my web-page (in jsp) but I don't know how to make the connection for
>    getting the JID, RID  and SID?
> 
>    Thanks, Dani.

I only have server-side prebind code for PHP and Python.

See here: 
https://conversejs.org/docs/html/index.html#example-code-for-server-side-prebinding

A quick google brings up this for Java:


http://stackoverflow.com/questions/23264662/java-trying-to-prebind-converse-js-using-bosh-but-not-able-to-get-the-sid-and

I would be happy to update the docs with another example if you can provide me
with one that you verified is working.