Skip to main content

Module websocket

Module websocket 

Source
Expand description

Native WebSocket client for real-time page interaction.

Provides a thin wrapper around tokio-tungstenite for opening, sending, receiving, and closing WebSocket connections discovered by crate::acquisition::ws_discovery. This avoids spinning up a browser just to interact with sites that use WebSockets for their primary data transport (Slack, Discord, real-time dashboards, etc.).

§Execution priority

In the action execution stack, WebSocket sits at priority 4 (after WebMCP, Platform API, and HTTP Action).

Re-exports§

pub use crate::acquisition::ws_discovery::WsAuth;
pub use crate::acquisition::ws_discovery::WsEndpoint;
pub use crate::acquisition::ws_discovery::WsProtocol;

Structs§

WsMessage
A WebSocket message received or sent.
WsSession
An active WebSocket session.

Enums§

WsDirection
Direction of a WebSocket message.