#websocket Endpoints (4)
Create WebSocket Session ID
Generates a unique UUID session identifier for initializing a real-time WebSocket channel. > **Dual-Runtime Ingress:** High-speed Go handler on `open-worker (:8080)` with Python route parity on `open-api (:8010)`.
Dispatch Remote Command to Connected Desktop Client
Validates the caller's Bearer JWT and publishes a `DESKTOP_COMMAND` envelope over Valkey Pub/Sub (`{org_id}/{target_user_id}/{target_device_id}`) to a connected Valstorm Desktop / vsagent daemon.
Publish Real-Time Message to WebSocket Channel
Publishes a real-time JSON event payload to an organization (`{org_id}`) or user (`{org_id}/{user_id}`) Valkey Pub/Sub channel and broadcasts to all subscribed WebSocket clients.
Upgrade HTTP Connection to Real-Time WebSocket Stream
Upgrades the connection to a persistent bi-directional WebSocket subscribed to `{org_id}`, `{org_id}/{user_id}`, and optional `{org_id}/{user_id}/{device_id}` CUD and AI stream channels.
