WebSocketClientExt

Trait WebSocketClientExt 

Source
pub trait WebSocketClientExt {
    // Required method
    fn spawn(self: Arc<Self>) -> JoinHandle<Result<(), ClientError>>;
}
Expand description

Extension trait for running client in background

Required Methods§

Source

fn spawn(self: Arc<Self>) -> JoinHandle<Result<(), ClientError>>

Spawn the client as a background task

Implementors§