cxxmcp 1.1.6
C++ MCP SDK
Loading...
Searching...
No Matches
websocket_transport.hpp File Reference

WebSocket transport implementations for MCP client and server peers. More...

#include <chrono>
#include <cstddef>
#include <cstdint>
#include <memory>
#include <optional>
#include <string>
#include <string_view>
#include <unordered_map>
#include "cxxmcp/core/result.hpp"
#include "cxxmcp/protocol/types.hpp"
#include "cxxmcp/roles.hpp"
#include "cxxmcp/transport/transport.hpp"

Go to the source code of this file.

Classes

struct  mcp::transport::WebSocketClientTransportOptions
 Configuration for the WebSocket client transport. More...
 
struct  mcp::transport::WebSocketServerTransportOptions
 Configuration for the WebSocket server transport. More...
 
class  mcp::transport::WebSocketClientTransport
 WebSocket-based MCP client transport. More...
 
class  mcp::transport::WebSocketServerTransport
 WebSocket-based MCP server transport. More...
 

Detailed Description

WebSocket transport implementations for MCP client and server peers.

These transports provide a full-duplex, message-oriented channel for JSON-RPC over WebSocket. The client transport supports automatic reconnection with exponential backoff.

Requires CXXMCP_ENABLE_WEBSOCKET (which in turn requires CXXMCP_ENABLE_HTTP).