DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
wamp.h File Reference

WAMP (Web Application Messaging Protocol) codec (DETWS_ENABLE_WAMP) - zero-heap builders + a positional parser for the unified RPC + PubSub protocol, which rides the shipped WebSocket layer (subprotocol wamp.2.json). More...

#include "ServerConfig.h"

Go to the source code of this file.

Detailed Description

WAMP (Web Application Messaging Protocol) codec (DETWS_ENABLE_WAMP) - zero-heap builders + a positional parser for the unified RPC + PubSub protocol, which rides the shipped WebSocket layer (subprotocol wamp.2.json).

A WAMP message is a JSON array whose first element is the integer message type, e.g. SUBSCRIBE = [32, Request|id, Options|dict, Topic|uri]. The builders drive the shared JsonWriter to emit these arrays into a caller buffer (Options/Details default to {}; Arguments / ArgumentsKw are passed as pre-formatted JSON literals or omitted). The parser is a small positional scanner over an inbound array: extract the message type, an id at a given position, or a URI - enough to drive WELCOME / SUBSCRIBED / EVENT / RESULT / INVOCATION / ERROR handling. Message codes verified against the WAMP spec.

The WebSocket connection and the session / subscription / registration tables are the application's; this is the message codec.

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file wamp.h.