Module websocket

Module websocket 

Source

Modules§

error_codes
Standard error codes (Protocol v1.0 Section 4.5)

Structs§

DatabaseOperationPayload
Payload for database operation notifications
EmptyPayload
Empty payload for ping/pong messages
ErrorPayload
Payload for error message (Protocol v1.0 Section 4.5)
GoodbyePayload
Payload for goodbye message
HelloPayload
Payload for hello message (client → server)
InitPayload
Payload for UI init message
McpConnection
MCP connection entry
ProjectInfo
Project information sent by MCP servers
ProjectOfflinePayload
Payload for UI project_offline message
ProjectOnlinePayload
Payload for UI project_online message
ProtocolMessage
Protocol message wrapper - wraps all WebSocket messages with version and timestamp
RegisterPayload
Payload for MCP register message
RegisteredPayload
Payload for MCP registered response
UiConnection
UI connection entry
WebSocketState
Shared WebSocket state
WelcomePayload
Payload for welcome message (server → client)

Constants§

PROTOCOL_VERSION
Intent-Engine Protocol Version

Functions§

handle_mcp_websocket
Handle MCP WebSocket connections
handle_ui_websocket
Handle UI WebSocket connections