Upgrade to Pro — share decks privately, control downloads, hide ads and more …

WebSockets

John Downey
September 26, 2011

 WebSockets

John Downey

September 26, 2011
Tweet

More Decks by John Downey

Other Decks in Programming

Transcript

  1. GET  /ws  HTTP/1.1   Host:  localhost:1234   Connection:  Upgrade  

    Sec-­‐WebSocket-­‐Version:  6   Sec-­‐WebSocket-­‐Origin:  http://localhost:1234   Sec-­‐WebSocket-­‐Extensions:  deflate-­‐stream   Sec-­‐WebSocket-­‐Key:  x3JJHMbDL1EzLkh9GBhXDw==   Upgrade:  websocket        
  2. GET  /ws  HTTP/1.1   Host:  localhost:1234   Connection:  Upgrade  

    Sec-­‐WebSocket-­‐Version:  6   Sec-­‐WebSocket-­‐Origin:  http://localhost:1234   Sec-­‐WebSocket-­‐Extensions:  deflate-­‐stream   Sec-­‐WebSocket-­‐Key:  x3JJHMbDL1EzLkh9GBhXDw==   Upgrade:  websocket        
  3. HTTP/1.1  101  Switching  Protocols   Upgrade:  websocket   Connection:  Upgrade

      Sec-­‐WebSocket-­‐Accept:  HSmrc0sMlYUkAGmm5OPpG2HaGWk=