Expand description
MPP WebSocket transport.
Implements [PubSubConnect] with automatic MPP 402 challenge/credential
handshake at WebSocket connect time. Non-MPP servers are handled via a
timeout-based fallback: if no challenge frame arrives within a short window
after connecting, we assume the server is a plain JSON-RPC WebSocket.
Structsยง
- MppWs
Connect - WebSocket connector with automatic MPP payment at connect time.
Constantsยง
- KEEPALIVE_
INTERVAL ๐ - Keepalive ping interval (matches alloy-transport-ws default).
- MPP_
CHALLENGE_ ๐TIMEOUT - Timeout for waiting on an MPP challenge frame from the server.
Type Aliasesยง
- Tungstenite
Stream ๐