You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an existing Go application which uses gorilla/websocket. I also have a test suite written in Go which uses gorilla/websocket's websocket.Dialer to connect to an instance of the application and exercise a bunch of functionality. This all works.
I replaced gorilla/websocket with sockjs in the application. Now my test client, using gorilla/websocket can no longer connect to it. I always get bad handshake. My actual handler never gets called -- I have a log statement as the first line, and it never logs anything.
So, my socketHandler function never gets called, and gorilla/websockets gets a "bad handshake" message every time I connect to sockjs. I'm using the same version of gorilla/websockets in all places.
Am I doing something wrong, or is this possibly a bug?
The text was updated successfully, but these errors were encountered:
I have an existing Go application which uses
gorilla/websocket
. I also have a test suite written in Go which usesgorilla/websocket
'swebsocket.Dialer
to connect to an instance of the application and exercise a bunch of functionality. This all works.I replaced
gorilla/websocket
withsockjs
in the application. Now my test client, usinggorilla/websocket
can no longer connect to it. I always getbad handshake
. My actual handler never gets called -- I have a log statement as the first line, and it never logs anything.I've tried these variations:
I've also tried using custom options instead of the defaults.
On the client side, I've tried to connect to:
So, my
socketHandler
function never gets called, andgorilla/websockets
gets a "bad handshake" message every time I connect tosockjs
. I'm using the same version ofgorilla/websockets
in all places.Am I doing something wrong, or is this possibly a bug?
The text was updated successfully, but these errors were encountered: