1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! This is part of `websocket` crate that is independent from `hyper`.
//! It contains code for processing WebSocket streams,
//! (after HTTP upgrade already happened)
//! WebSocket message definition, some error type.
//!
//! For now it still optionally depends on `futures 0.1` and `tokio-io 0.1`, but that's going to
//! be extracted to a separate crate, if `rust-websocket`'s depelopment continues.
//!
//! Note that there is no normal example of usage so far. See usual `websocket` crate or
//! alternative like `tungstenite`.

extern crate byteorder;

#[cfg(feature = "async")]
extern crate bytes;
#[cfg(feature = "async")]
extern crate futures;
extern crate rand;
#[macro_use]
extern crate bitflags;

#[cfg(any(feature = "sync-ssl", feature = "async-ssl"))]
extern crate native_tls;

#[cfg(feature = "async")]
extern crate tokio_codec;
#[cfg(feature = "async")]
extern crate tokio_io;
#[cfg(feature = "async")]
extern crate tokio_tcp;
#[cfg(feature = "async-ssl")]
extern crate tokio_tls;

#[cfg(feature = "async")]
pub mod codec;
pub mod dataframe;
pub mod header;
pub mod message;
pub mod result;
pub mod stream;
pub mod ws;

pub use message::Message;
pub use message::OwnedMessage;