Skip to content

Instantly share code, notes, and snippets.

View 0xCCD's full-sized avatar

Christian Lallemand 0xCCD

View GitHub Profile
@0xCCD
0xCCD / Gemfile
Created April 21, 2015 05:54
webmock-curb-issue
source 'https://rubygems.org'
group 'development', 'test' do
gem 'curb'
gem 'webmock'
end
@0xCCD
0xCCD / strophe.websocket.js
Created May 5, 2012 21:16 — forked from processone/strophe.websocket.js
Websocket support in strophe.js
/** 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