Daily Term: WebSocket
WebSocket
WebSocket is a communication protocol that enables real-time, bidirectional communication between a client and server over a single, long-lived connection. Unlike HTTP, which follows a request-response model, WebSocket allows the server to push data to the client instantly, making it ideal for applications like chat apps, live notifications, or gaming. WebSocket reduces latency and overhead but requires careful handling of connection state and scalability.
Date: 2025-06-07