WebSocket : is a computer communication protocol that provides a full-duplex communication channel over a single TCP connection. The IETF standardized the WebSocket protocol as RFC 6455 in 2011. The current API specification that allows web applications to use this protocol is called WebSockets. [1] It is an active standard maintained by the WHATWG and a successor to the W3C’s WebSocket API. [2]
WebSocket is different from HTTP. Both protocols are located at layer 7 of the OSI model and depend on TCP at layer 4. Although they are different, RFC 6455 states that WebSocket “is designed to work over HTTP ports 443 and 80 and to support HTTP proxies and intermediaries”, making it HTTP compatible. For compatibility, the WebSocket handshake uses the HTTP Upgrade header to convert the HTTP…
The post Introduction to WebSockets first appeared on Lenix Blog .
This article is reprinted from https://blog.p2hp.com/archives/9714
This site is for inclusion only, and the copyright belongs to the original author.