ecthiender / py-graphql-client

Dead-simple GraphQL client with subscriptions over websockets
https://pypi.org/project/py-graphql-client/
Other
37 stars 11 forks source link

Support secure websockets (wss) #1

Closed ecthiender closed 5 years ago

ecthiender commented 5 years ago

Currently wss does not work. Add support for wss.

SalmonMode commented 5 years ago

After using this for a little bit, and talking with someone far more familiar with GraphQL than me, it looks like not being able to do wss is a result of not including this header when making the initial connection:

"Sec-WebSocket-Protocol: graphql-ws"

I think including this by default should solve the problem.