|
A11 (C++ runtime)
Native C++ implementation of the A11 action and streaming runtime
|
Accepts inbound WebSocket connections and hands each to a callback. More...
#include <cpp/a11/net/websocket_wire_stream.h>
Classes | |
| struct | State |
Public Member Functions | |
| ~WebSocketWireServer () | |
| absl::Status | Stop () |
| Stops the server and closes the listening socket. | |
| absl::StatusOr< std::uint16_t > | port () const |
| bool | running () const |
| void *absl_nullable | GetImpl () const |
Static Public Member Functions | |
| static absl::StatusOr< std::shared_ptr< WebSocketWireServer > > | Create (OnWebSocketStream on_stream, WebSocketServerOptions options={}) |
| Starts a WebSocket server accepting A11 connections. | |
Accepts inbound WebSocket connections and hands each to a callback.
The server-side entry point for hosting an agent over WebSockets: every accepted connection invokes on_stream concurrently with a fresh WebSocketWireStream, which the handler typically drives via Accept().
| a11::net::WebSocketWireServer::~WebSocketWireServer | ( | ) |
|
static |
Starts a WebSocket server accepting A11 connections.
| on_stream | Callback run for each accepted stream. |
| options | Listen address, port, path, and TLS/framing settings. |
| void *absl_nullable a11::net::WebSocketWireServer::GetImpl | ( | ) | const |
| absl::StatusOr< std::uint16_t > a11::net::WebSocketWireServer::port | ( | ) | const |
| bool a11::net::WebSocketWireServer::running | ( | ) | const |
| absl::Status a11::net::WebSocketWireServer::Stop | ( | ) |
Stops the server and closes the listening socket.