La mia app funziona perfettamente in localhost con socket.io utilizzando websockets e xhr-polling e funziona con xhr-polling in heroku, ma dal momento che heroku ha fornito il supporto per websocket non posso fallo funzionare usando websockets.Websocket non funziona con socket.io in heroku
console My Chrome mostra questo messaggio: laboratori websocket
WebSocket connection to 'ws://<myherokuapp>.herokuapp.com/socket.io/1/websocket/HBWE2BFvHahlSWk5ppHP' failed: Unexpected response code: 503
ho già attivato.
Esiste un esempio funzionante di websocket che utilizza socket.io?
Ho trovato anche questa risposta, che fornisce anche maggiore chiarezza su come il polling XHR potrebbe essere attivato casualmente, quando salvato in modo casuale sui cookie: http://stackoverflow.com/a/19680457/2728686 – AmpT
Grazie! Ora funziona! – Igor
@Igor È un piacere, felice di poterti aiutare! – AmpT