Back to Glossary
maker
WebSocket
What is a WebSocket?
A WebSocket is a communication protocol that enables full-duplex, real-time data exchange between a client (like a web browser or microcontroller) and a server over a single TCP connection. Unlike traditional HTTP requests that follow a request-response pattern, WebSockets maintain a persistent connection allowing both parties to send data at any time. This makes WebSockets ideal for IoT applications, remote sensor monitoring, and embedded systems that need to stream data or receive commands instantly without the overhead of establishing new connections.