feat(qconnect-transport): add native websocket transport with qcloud framing

-cx
This commit is contained in:
vicrodh committed 2026-02-21 12:17:47 -06:00
1 parent d1b01bbd5e
commit c4ffbf4f57
5 files changed
+900

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
use thiserror::Error;
#[derive(Debug, Error)]
pub enum WsTransportError {
#[error("transport is already connected")]
AlreadyConnected,
#[error("transport is already running")]
AlreadyRunning,
#[error("transport is not connected")]
NotConnected,
#[error("transport event channel is closed")]
EventChannelClosed,
#[error("transport task channel is closed")]
TransportChannelClosed,
#[error("transport task join error: {0}")]
Join(String),
#[error("websocket protocol error: {0}")]
Protocol(String),
#[error("serialization error: {0}")]
Serialization(String),
#[error("internal transport error: {0}")]
Internal(String),
}