liveBook · Manning

WebSocket

WebSocket is a network protocol that enables persistent, bidirectional, full-duplex communication between endpoints over a single TCP connection.

How 2 Manning books explain it

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

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.