Last active
March 25, 2021 22:19
-
-
Save shaykav/59aeac9f8b9adc5e3a74acf6e18bc915 to your computer and use it in GitHub Desktop.
Handler for connect event type
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
if (eventType === 'CONNECT') { | |
return { | |
statusCode: 200, | |
headers: { | |
'Sec-WebSocket-Protocol': 'graphql-transport-ws' | |
}, | |
body: '' | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment