Created
February 10, 2019 14:11
-
-
Save hansemannn/60f22d6df3cfb73ba317630da7093ea4 to your computer and use it in GitHub Desktop.
Test socket.io connection
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
# Either use "polling" or "websocket" for the "transport" option | |
curl --include \ | |
--no-buffer \ | |
--header "Connection: Upgrade" \ | |
--header "Upgrade: websocket" \ | |
--header "Host: example.com:80" \ | |
--header "Origin: http://google.com:80" \ | |
--header "Sec-WebSocket-Key: jJSjsoSlsjSh37==" \ | |
--header "Sec-WebSocket-Version: 13" \ | |
http://YOUR_HOST:YOUR_PORT/socket.io/?transport=polling |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment