use unb_core::CoreError;
use unb_transport::TransportError;
use crate::client::ClientError;
#[derive(Debug, thiserror::Error)]
pub enum WsError {
#[error(transparent)]
Core(#[from] CoreError),
#[error(transparent)]
Transport(#[from] TransportError),
#[error(transparent)]
Client(#[from] ClientError),
#[error("connection failed: {0}")]
Connect(String),
#[error("session is gone")]
Gone,
}