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

Notification 2

Dabcc157b09c806f53a61102f47554e6?s=47 kaiye
March 25, 2011

Notification 2

Http 1.1 protocol and HTML5 Web Socket API

Dabcc157b09c806f53a61102f47554e6?s=128

kaiye

March 25, 2011
Tweet

More Decks by kaiye

Other Decks in Technology

Transcript

  1. Notification 2 @kaiye

  2. [Constructor] interface Notification : EventTarget { void show (); void

    cancel (); attribute Function onclick; attribute Function onshow; attribute Function onerror; attribute Function onclose; attribute DOMString replaceId; attribute DOMString dir; };
  3. HTTP: {Stateless Connection:closed

  4. URL parameter ASP/PHP/JAVA Cookie & Session Stateless > Stateful

  5. None
  6. Connection:keep-alive HTTP/1.1

  7. None
  8. None
  9. None
  10. None
  11. WS

  12. http://t.qq.com/jiaoshoutv

  13. None
  14. None
  15. HTTP/1.1 101 WebSocket Protocol HandShake

  16. Reference • 《Hypertext Transfer Protocol》 http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#cite_note- ietf2616-0 • 《The WebSocket

    API》 http://dev.w3.org/html5/websockets/ • 《Pro HTML5 Programming》 http://prohtml5.com/
  17. See you next time:)