Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

Socket.IO and Heroku

jmendeth edited this page Sep 20, 2012 · 6 revisions

Heroku and Socket.IO do not play well out of the box with each other.
To fix this, Socket.IO must have its 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.