Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebSocket support #9

Closed
GeoffreyOnRails opened this issue Jun 28, 2013 · 8 comments
Closed

WebSocket support #9

GeoffreyOnRails opened this issue Jun 28, 2013 · 8 comments

Comments

@GeoffreyOnRails
Copy link

I open this discussion to pursue the one in metajack's branch (metajack/strophejs#68)
I agree with michfield, I would also suggest to merge @Gordin branch.
Is there any reason not to merge this branch/support websocket in strophe yet?

@Gordin
Copy link
Contributor

Gordin commented Jun 28, 2013

I updated my WebSocket branch to the latest version of this repo and created a pull request for this: #10
There were some conflicts in the merge due to #1 but everything I tested works fine and the unittests also pass. Still if there are bugs due to my merge please comment.

@Gordin
Copy link
Contributor

Gordin commented Aug 3, 2013

@metajack Just wondering if you looked at my branch yet. Any thoughts about actually merging it?

@metajack
Copy link
Contributor

metajack commented Aug 4, 2013

Merge away. @Gordin is now also a committer. Great job!

@Gordin
Copy link
Contributor

Gordin commented Aug 4, 2013

Merged #10
StropheJS now Supports WebSockets :)

@Gordin Gordin closed this as completed Aug 4, 2013
@nurnabisiddique
Copy link

do you have any example on strophe web socket pai

@rastkojokic
Copy link

Any examples of how to use web socket?

Thanks!

@Gordin
Copy link
Contributor

Gordin commented May 15, 2015

You need an XMPP Server that has support for WebSocket connections. If you have that, just replace the BOSH connection URL with a WebSocket URL (usually ws://server.tld:5280/xmpp-websocket) and Strophe will use WebSockets instead of BOSH. Everything will work just as with BOSH otherwise.
Read the documentation for your server on how to setup WebSocket connections.

@rastkojokic
Copy link

Thanks @Gordin . That's all I needed!

Have a good day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants