Last active
March 21, 2023 15:29
-
-
Save PatrikValkovic/a72185a9dd2334fd6eab3659c379281e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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