Skip to content

Instantly share code, notes, and snippets.

@timusg
Created May 20, 2013 09:31
Show Gist options
  • Save timusg/5611267 to your computer and use it in GitHub Desktop.
Save timusg/5611267 to your computer and use it in GitHub Desktop.
configure socket.io for heroku , using xsr-polling instead of websockets
io.configure(function () {
io.set("transports", ["xhr-polling"]);
io.set("polling duration", 10);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment