Messages in both directions
02Once established, either endpoint can send a message without waiting for a new HTTP request.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.
DIAGRAM§ 1.2 ↗
RFC 6455 · § 1.2EXAMPLE
3 / 3
03
Choose a message type for the application.
Binary content is delivered as bytes; its meaning comes from the application or negotiated subprotocol.
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
Read the updated RFC section ↗
Two independent directions share one connection.
- The base protocol carries text or binary messages over TCP.
- Text messages must contain valid UTF-8 as a whole, even if split across frames.
- WebSocket framing does not define your application message schema, delivery acknowledgments, or business-level replay behavior.
The illustration shows ordinary text messages. A TCP connection is an ordered byte stream; WebSocket provides message framing on top of it.
Read the RFC section ↗Diagrams simplify the RFC. Read the linked sections for complete requirements.
Privacy