Skip to content

Instantly share code, notes, and snippets.

@altfatterz
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save altfatterz/9025076 to your computer and use it in GitHub Desktop.
Save altfatterz/9025076 to your computer and use it in GitHub Desktop.
var request = { url: document.location.toString() + 'event',
contentType : "application/json",
logLevel : 'debug',
transport : 'websocket',
fallbackTransport : 'long-polling' ,
trackMessageLength : true,
reconnectInterval : 5000,
enableXDR: true,
timeout : 60000,
headers : {sessionId : sessionId} // 0 for firefox, 1 for chrome, 2 for IE
};
subSocket = atmosphere.subscribe(request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment