WebSocket
WebSocket is a network protocol that enables persistent, bidirectional, full-duplex communication between endpoints over a single TCP connection.
Go in Practice, Second Edition
WebSocket is a protocol that provides persistent, bidirectional communication between a client and server over a single connection.
- How it is used
- Enables targeted real-time, bidirectional communication when polling feels stale or inefficient.
- How deep it goes
- Explains persistent TCP connections, HTTP upgrade handling, and a working chat implementation, while deferring advanced package features.
- Examples
- Demonstrates a multi-client chat application with real-time messages and active-member updates.
- What you can do after
- Build it from scratch as a small Go chat service with upgraded HTTP connections and multiplexed client messaging.
Read how Go in Practice, Second Edition explains WebSocket →
Python Concurrency with asyncio
WebSocket is a network communication standard that provides a persistent, bidirectional connection between a client and server.
- How it is used
- Replaces inefficient HTTP polling when applications need timely server-pushed updates.
- How deep it goes
- Explains persistent connections and implements endpoint callbacks, but does not descend into protocol internals.
- Examples
- Uses a live user counter, a Starlette endpoint, and a browser JavaScript client.
- What you can do after
- Build it with Starlette to broadcast changing application data without repeated HTTP requests.
Read how Python Concurrency with asyncio explains WebSocket →
Related concepts
- pollingalternative to · Polling is the repeated checking or querying of a resource, system, or condition, often at intervals, to detect data, events, or state changes.
- Starletteused by · Starlette is a lightweight Python ASGI web framework and toolkit for building asynchronous web applications and services.
- streaminguses · Streaming is the incremental handling of a sequence of data items, including their processing, transfer, or consumption as they become available.
- server-sent eventsalternative to · Server-Sent Events is a web standard for streaming text-based event updates one way from a server to a client over an HTTP connection.
- HTTPuses · HTTP is a standardized application-layer protocol that defines request-and-response messages for transferring resource representations between networked systems.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

