mod codec;
mod connection;
pub use codec::{DecodeError, EncodeError, NoMessages, WsCodec, WsMessage};
pub use connection::{RecvError, SendError, WsConnection, WsReceiver, WsSender};
#[cfg(feature = "server")]
pub mod server;
#[cfg(feature = "yew-client")]
pub mod yew_client;
#[cfg(feature = "native-client")]
pub mod native_client;
#[cfg(feature = "reconnect")]
pub mod reconnect;
pub trait WsEndpoint {
const PATH: &'static str;
type ServerMsg: WsCodec + Clone + Send + 'static;
type ClientMsg: WsCodec + Clone + Send + 'static;
}