Skip to content

Socket.IO not falling back on "long-polling" on Heroku instance? #404

@jaypeeZero

Description

@jaypeeZero

I opened a ticket with Heroku about a Socket.IO example not working on a brand new instance. This is what I sent them:

I uploaded a quick test to try out some things on Heroku and using one of the examples from the Socket.IO website, it doesn't >work. I looked at the logs and I see

setting request GET /socket.io/1/websocket/90084221689769639
set heartbeat interval for client 90084221689769639
then
websocket connection invalid
transport ended

The example works on my local machine and an Amazon EC2 instance perfectly, but I will need Heroku for the Node Knockout competition.

Heroku's response was:

Socket.IO is trying to use websockets, which we don't support; shouldn't it fall back to http 1.1 long-polling though?

So my question is why is Socket.IO NOT fallling back on Long-Polling? Do I need to do something in the code to make it work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions