Skip to content

Instantly share code, notes, and snippets.

@defsprite
defsprite / strophe.websocket.js
Created March 7, 2011 19:05 — forked from processone/strophe.websocket.js
a (w)hacky strophe websockets connection implementation
/** Class: Strophe.WebSocket
* XMPP Connection manager.
*
* Thie class is the main part of Strophe. It manages a BOSH connection
* to an XMPP server and dispatches events to the user callbacks as
* data arrives. It supports SASL PLAIN, SASL DIGEST-MD5, and legacy
* authentication.
*
* After creating a Strophe.Connection object, the user will typically
* call connect() with a user supplied callback to handle connection level