vigoo/openapi_client_runtime/ws does not have a README file
pub(open) trait WebSocketDialer { async fn dial(Self, url~ : String, headers~ : @vigoo/openapi_client_runtime.HeadersHeaders, protocols~ : Array[String]) -> &WsConn raise WsError}
pub(open) trait WsConn { async fn send(Self, WsMessage) -> Unit raise WsError async fn recv(Self) -> WsMessage? raise WsError async fn close(Self, code~ : UInt16, reason~ : String) -> Unit raise WsError}
pub(all) suberror WsError { ConnectFailed(String) Protocol(String) Closed(code~ : UInt16, reason~ : String) Io(String) Cancelled} derive(Eq, @moonbitlang/core/debug.DebugDebug)
pub(all) enum WsMessage { Text(String) Binary(Bytes)} derive(Eq, @moonbitlang/core/debug.DebugDebug)
Install
Sans-IO runtime for generated OpenAPI clients: Transport, middleware & retries, SSE/NDJSON/binary streaming, WebSockets, OAuth2 PKCE, JSON codecs, and HTTP encodings.
Published modules that use this version