Skip to content

Instantly share code, notes, and snippets.

@PatrikValkovic
Last active March 21, 2023 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PatrikValkovic/a72185a9dd2334fd6eab3659c379281e to your computer and use it in GitHub Desktop.
Save PatrikValkovic/a72185a9dd2334fd6eab3659c379281e to your computer and use it in GitHub Desktop.
headers: {
'Connection': 'upgrade',
'Upgrade': 'websocket',
'Sec-WebSocket-Protocol': 'graphql-transport-ws',
'Sec-WebSocket-Accept': base64(
sha1(
headers['Web-Socket-Key'] + '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'
)
),
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment