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 tried the chat sample on its own and works great, but then I tried to port it to my app that uses goji and the pat router and now the ws connections gives me:
WebSocket connection to 'ws://192.168.1.10:9000/ws' failed: Connection closed before receiving a handshake response
and the handler serveWs is never called (I added a log.Println as the first line inside serveWs and it is not printed)
just in case anyone else runs into this, the issue was that I had browsersync between my go app and the browser and that causes the websocket connection to fail.
Hi,
I tried the chat sample on its own and works great, but then I tried to port it to my app that uses goji and the pat router and now the ws connections gives me:
WebSocket connection to 'ws://192.168.1.10:9000/ws' failed: Connection closed before receiving a handshake response
and the handler
serveWs
is never called (I added a log.Println as the first line inside serveWs and it is not printed)on main.go I tried:
and
both give me the same result, none call my handlers.
Any help would be great.
Thanks
The text was updated successfully, but these errors were encountered: