Rust

websocket

Module

NATS over WebSockets (ws://, wss://).

Contents

use utopia_nats::transport::websocket::WebSocketTransport;
Rust
pub struct WebSocketTransport

The NATS protocol inside binary WebSocket frames (RFC 6455). Frames the client sends are masked; reads serve the unframed byte stream, answering pings and failing on a close frame.