Skip to main content

Module ws

Module ws 

Source
Expand description

WebSocket worker-channel module.

types mirrors the TypeScript wire-format types from apps/studio/src/shared/types/workerWs.ts. client wraps the tokio-tungstenite connection and exposes a session API to the runtime.

Modules§

client
tokio-tungstenite-backed client for the studio WS worker channel.
session
Long-running WebSocket session that owns the worker’s lifecycle.
types
Rust mirrors of the WebSocket frame types defined in apps/studio/src/shared/types/workerWs.ts.