protocol
An agreed set of rules for how two programs exchange messages, such as HTTP, TCP or WebSocket.
In more detail
A protocol fixes the message format, the order of steps and what happens on errors, so software written by different people can talk to each other. Protocols are layered: HTTP runs on top of TLS, which runs on top of TCP.
Related terms
- HTTP — The protocol web browsers and web servers use to send requests and responses.
- TCP — The internet protocol that delivers data between programs reliably and in order, used by the web and most databases.
- 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.
Taught in
- Binary Data Manipulation: TypedArrays & Endianness — Node.js Internals & Backend Services
- Transform Streams: Custom Packet Decoding & Codecs — Node.js Internals & Backend Services
- Native HTTP/2 Protocols: Multiplexed Streams & Push — Node.js Internals & Backend Services