Skip to content

Instantly share code, notes, and snippets.

@bato3
Forked from danbev/gist:9887071
Created April 30, 2017 12:58
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 bato3/d4174c9fb4b3ac4ae5ff7ce0fe9aa213 to your computer and use it in GitHub Desktop.
Save bato3/d4174c9fb4b3ac4ae5ff7ce0fe9aa213 to your computer and use it in GitHub Desktop.
SockJS curl commands

Open or poll a xhr polling session:

curl -v http://localhost:8081/echo/123/123/xhr

Send to a xhr polling session:

curl -i --header "Content-Type: application/javascript" -X POST -d '["data"]' http://localhost:8081/echo/123/123/xhr_send
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment