Chapter 6. A WebSocket Server

Table of Contents

1. Overview
2. The Program
3. Walk-through
4. Building and Running
5. See Also

1. Overview

The server-ws program is a WebSocket echo server. It uses the WebSocket server layer (vws_svr), which is built on the core TCP server but operates on fully-formed WebSocket messages. Each message it receives is echoed back, preserving the original opcode so that text stays text and binary stays binary.