Skip to content

Instantly share code, notes, and snippets.

@cwensley
Created November 9, 2012 03:12
Show Gist options
  • Save cwensley/4043483 to your computer and use it in GitHub Desktop.
Save cwensley/4043483 to your computer and use it in GitHub Desktop.
Force long polling in jabbr
transport = $.cookie('jabbr.transport'),
options = {};
if (transport) {
options['transport'] = transport;
}
+ else
+ options['transport'] = 'longPolling';
connection.hub.logging = logging;
connection.hub.start(options, function () {
chat.server.join()
.fail(function (e) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment