Http 1.1 protocol and HTML5 Web Socket API
Notification 2@kaiye
View Slide
[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;};
HTTP:{StatelessConnection:closed
URL parameterASP/PHP/JAVACookie & SessionStateless > Stateful
Connection:keep-aliveHTTP/1.1
WS
http://t.qq.com/jiaoshoutv
HTTP/1.1 101 WebSocket Protocol HandShake
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/
See you next time:)