Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Problems with sockjs Fallback #99

Open
luniki opened this Issue · 4 comments

4 participants

@luniki

Before pusher-js v1.12.4 Pusher used either WebSocket or Flash as a fallback. Since pusher/pusher-js@54bde39 they started using sockjs as a second fallback method.

As of now slanger works fine with WebSockets and with Flash. But if you've got a client which does not have WebSocket support and does not have Flash (for example my Android 4.0.4 smartphone), the pusher-js library tries to talk with the original pusher.com server (via http://sockjs.pusher.com/pusher)

Do you have plans to support sockjs too? Or should one use pusher-js <= v1.12.3

@adharris

I encountered this while restarting slanger; the client would connect fine, id restart the server with the client still connected, and the client would attempt to reconnect to pusher.

Using the current version of the client, I've worked around this by disabling the sockjs transport as a fallback:

pusher = new Pusher(key, {
    wsHost: "slanger host",
    wsPort: "slanger port",
    wssPort: "slanger port",
    disabledTransports: ['sockjs'],
});

This appears to work, though I +1 the notion of adding sockjs to slanger.

@stevegraham
Owner

I'll look into this.

@stevegraham
Owner

SockJS is being implemented in the next release.

@stevegraham stevegraham self-assigned this
@stevegraham stevegraham added this to the Rewrite milestone
@senc01a

Any progress on this?
Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.