Messages in both directions
02Once established, either endpoint can send a message without waiting for a new HTTP request.
Binary content is delivered as bytes; its meaning comes from the application or negotiated subprotocol.
Key idea: Two independent directions share one connection.
Rules & examples
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.
Sources
New to this? Start hereA quick picture + helpful background
A request starts a conversation.
A client asks for a resource. A server sends a response. The method, address, headers, and status explain what that conversation means.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.