
WebSocket
Sign in to saveWebSocket is a computer communications protocol, providing a bidirectional communication channel over a single Transmission Control Protocol (TCP) connection. The protocol was standardized by the IETF as in 2011. The current specification allowing web applications to use this protocol is known as WebSockets. It is a living standard maintained by the WHATWG and a successor to The WebSocket API from the W3C.
Key facts
- Protocol.name
- WebSocket
- Protocol.image
- WebSocket colored logo.svg
- Protocol.caption
- The WebSocket logo
- Protocol.industry
- Computer science
- Protocol.connector
- TCP
via Wikipedia infobox
Wikidata facts
- Official website
- websockets.spec.whatwg.org
Show 5 more facts
- Stack Exchange tag
- stackoverflow.com/tags/websocket
- described at URL
- websockets.spec.whatwg.org
- source code repository URL
- github.com/whatwg/websockets
- protocol
- Transmission Control Protocol
Sources (2)
via Wikidata · CC0
~25 min read
Encyclopedic overview
21 sectionsContents
- History
- Web API
- Client example
- WebSocket interface
- Protocol
- Opening handshake
- Frame-based message
- Frame structure
- Opcodes
- Client-to-server masking
- Status codes
- Compression extension
- Server implementation example
- Browser support
- Server implementations
- Security considerations
- Proxy traversal
- See also
- Notes
- References
- External links
WebSocket is a computer communications protocol, providing a bidirectional communication channel over a single Transmission Control Protocol (TCP) connection. The protocol was standardized by the IETF as in 2011. The current specification allowing web applications to use this protocol is known as WebSockets. It is a living standard maintained by the WHATWG and a successor to The WebSocket API from the W3C.
WebSocket is distinct from HTTP used to serve most webpages. Although they are different, states that WebSocket "is designed to work over HTTP ports 443 and 80 as well as to support HTTP proxies and intermediaries", making the WebSocket protocol compatible with HTTP. To achieve compatibility, the WebSocket handshake uses the HTTP Upgrade header to change from the HTTP protocol to the WebSocket protocol.
Excerpted from Wikipedia’s “WebSocket” article, available under the CC BY-SA 4.0 licence.