#[macro_use]
extern crate failure;
extern crate bincode;
extern crate serde;
extern crate ws;

pub mod client;
pub mod error;
pub mod message;
pub mod server;

pub use client::client_impl::{connect, Client};
pub use client::handler::Handler as ClientHandler;
pub use error::{Error, Result};
pub use message::Message;
pub use server::handler::Handler as ServerHandler;
pub use server::server_impl::{spawn_server, Server};
pub use ws::{CloseCode, Message as WsMessage, Sender};
