forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Socket.IO and Heroku
Rod Vagg edited this page Sep 22, 2015
·
1 revision
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.