Hi guys, quick question : is it normal that the pr...
# orm-help
s
Hi guys, quick question : is it normal that the prisma server doesn't expose any ws://localhost:4466 endpoint ?
d
What is the error youโ€™re seeing?
s
I was playing around trying to implement subscription by my self in go. And when I try websocket.DefaultDialer.Dial() on ws ws://localhost:4466 I get a "bad handshake" error
d
You need a specific header to make it work, e.g.:
<ws://localhost:4466/> -H "Sec-Websocket-Protocol: graphql-ws"
s
Ohh ok thank's a lot ๐Ÿ™‚
It worked ๐Ÿ˜„ now I need to figure it out why I receive nil in data object x)
Here is a WIP repo https://github.com/Sach97/prisma-go-subscription-experiments. I wanted to help the prisma team ๐Ÿ™‚ unfortunately my code has a concurrency issue I think