Skip to content

Instantly share code, notes, and snippets.

@sgade
Last active December 16, 2015 14:09
Show Gist options
  • Save sgade/5446901 to your computer and use it in GitHub Desktop.
Save sgade/5446901 to your computer and use it in GitHub Desktop.
Configure heroku socket.io.
io = io.listen(server);
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