powered by Jive Software

Smack 4.5 websocket connections

Is there any documentation anywhere on establishing a connection using websockets as part of the 4.5 release?

A comment on this thread Smack websocket connection using 4.5.0 alpha1, says you don’t have to interact with the websocket manually.

If not, how do you connect?


You don’t have to, but you may need to. Smack’s new ModularXmppClientToServerConnection will per default have all available XMPP transports configured, and, if the right Smack artifact is in the classpath, then this will include the module for WebSockets. If your XMPP server then announces the availability of a WebSocket endpoint, over a supported discovery mechanism, then Smack will automatically try to use WebSockets if a plain TCP(+TLS) connection can’t be established.

Please let me know if you have further questions. I am aware that Smack’s documentation regarding the new connection mechanism is lacking, and understanding the questions and issues users face helps me to improve the documentation.

This topic was automatically closed 62 days after the last reply. New replies are no longer allowed.