full duplex
Communication where both sides can send at the same time; one-way (unidirectional) communication only flows in one direction.
In more detail
Half duplex means only one side sends at a time; unidirectional means data only ever flows one way. Full duplex allows true two-way conversation.
Example
WebSockets are full duplex; Server-Sent Events are unidirectional from server to client.Related terms
- WebSocket — A protocol that turns an HTTP connection into a long-lived, two-way channel where client and server can each send messages at any time.
- Server-Sent Events — A standard way for a server to keep an HTTP response open and push a stream of text events to the client, in one direction only.
- Duplex stream — A Node.js stream that is both readable and writable, with the two sides independent, such as a TCP socket.
Taught in
- Server-Sent Events: Streaming Updates & Recovery — Production Full-Stack Engineering
- Bidirectional WebSockets: Reconnection & Heartbeats — Production Full-Stack Engineering
- Native WebSockets: Bidirectional Real-Time Streams — Node.js Internals & Backend Services