Chapter 4. A Messaging Client

Table of Contents

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

1. Overview

The client-message program uses libvws's higher-level message type, vrtql_msg: a routing map, a headers map, and a content buffer, serialised (MessagePack or JSON) over a WebSocket connection. The program connects, builds a message, sends it, reads the content of the reply, and disconnects.