Converse converse.js

Class: Websocket


File: websocket.js A JavaScript library to enable XMPP over Websocket in Strophejs.

This file implements XMPP over WebSockets for Strophejs. If a Connection is established with a Websocket url (ws://...) Strophe will use WebSockets. For more information on XMPP-over-WebSocket see RFC 7395:

WebSocket support implemented by Andreas Guth (


new Websocket()

PrivateConstructor: Strophe.Websocket Create and initialize a Strophe.WebSocket object. Currently only sets the connection Object.

Parameters: (Strophe.Connection) connection - The Strophe.Connection that will use WebSockets.

Returns: A new Strophe.WebSocket object.