My GraphQL subscriptions only seem to work with on...
# orm-help
s
My GraphQL subscriptions only seem to work with one client at a time. (I have my phone and my laptop open to my app on the same network.) Is this expected behavior?
I’ll also post from one client, it will show up on the other, but not the one I posted from.
n
When you use the Playground to trigger the subscription directly, will both clients receive the message?
s
Looks like I got it working by switching the websocket protocol to
wss
in my client.
v
@Sam Jackson Before switching to
wss
what were you using?
ws
? Why should that have made a difference?
s
@virtualirfan Yes I was using
ws
.
wss
is the procotol for websockets over TLS. Since I was serving and accessing my API over TLS, subscriptions without TLS were throwing a security error.
👍 2