Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Socket.IO and Heroku

studgeek edited this page Jul 26, 2012 · 7 revisions

Heroku and Socket.IO do not play well out of the box with each other. Socket.IO needs to have it's transport set to xhr-polling with a 10 second interval.

io.set('transports', ['xhr-polling']);
io.set('polling duration', 10);

See this Heroku article for more information.

Clone this wiki locally