Skip to content

Instantly share code, notes, and snippets.

@hansemannn
Created February 10, 2019 14:11
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 hansemannn/60f22d6df3cfb73ba317630da7093ea4 to your computer and use it in GitHub Desktop.
Save hansemannn/60f22d6df3cfb73ba317630da7093ea4 to your computer and use it in GitHub Desktop.
Test socket.io connection
# 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