websocket: bad handshake with gorilla websockets
i have a websocket server running on railway with a custom domain, and when going to the websocket route in the browser, i get the expected error:
so i think the server is exposed correctly.
however, when connecting using my cli app with the gorilla websockets package, i get this error:
i'm not entirely sure why.
code for connecting:
15 Replies
Project ID:
8c9a3492-54aa-4b38-8d6f-03e1be90910a
8c9a3492-54aa-4b38-8d6f-03e1be90910a
have you tried connecting the the websocket server with postman or insomnia?
i haven't
give that a shot
i didn't even know they had websocket support
yep both do!
that's cool
let me know how that goes
server works there just something wrong with the client code
yeah
Scheme: "ws"
you need to use wss since railway is https onlyoh okay
that did the trick
thank you
no problem!