Skip to main content

Module websocket

Module websocket 

Source

Structs§

AuthEnvelope
The FIRST client→daemon message on EVERY daemon WebSocket connection (/execute and /listen alike) — always sent, even to a secretless daemon ({"signature": null}). Headers are never used for auth: browser WebSocket clients can’t set them. A daemon holding a DAEMON_SECRET verifies the signature and closes the connection on a missing/invalid one; a secretless daemon consumes the envelope and ignores the value.
ExecuteEnvelope
The one client→daemon message on an /execute connection: the typed request (as its serde JSON) plus the optional per-request identity override. The daemon deserializes this exact shape.
WebSocketExecutor
Execute commands against a remote cli daemon over WebSocket — connection per command on the daemon’s /execute route.

Enums§

Error