1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
//! Connection over WebSockets.
//!
//! You will usually pretty much immediately turn the connection into a Client.
//! E.g.
//! ```rust
//! use glimesh::{ws::Connection, Auth};
//! let client = Connection::connect(Auth::client_id("<GLIMESH_CLIENT_ID>")).await.into_client();
//! ```

mod config;
mod connection;
mod socket;

use crate::{Client, WebsocketConnectionError};
pub use connection::{Connection, ConnectionBuilder};

/// Type alias for a websocket backed client
pub type WebsocketClient = Client<Connection, WebsocketConnectionError>;