Skip to content

Instantly share code, notes, and snippets.

@fanzeyi
Created March 30, 2012 11:22
Show Gist options
  • Save fanzeyi/2250886 to your computer and use it in GitHub Desktop.
Save fanzeyi/2250886 to your computer and use it in GitHub Desktop.
Request Header:
GET ws://localhost:8000/ HTTP/1.1
Origin: http://localhost
Connection: Upgrade
Host: localhost:8000
Sec-WebSocket-Key: 1K90MdhASDkOc0/yEpSPPQ==
Upgrade: websocket
Sec-WebSocket-Version: 13
Response Header:
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: Ohoz+UWk67M5ARp30AlcxumG0Nk=
Origin: http://localhost
go
(êControl frames must not be fragmented.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment