fire_http_api/stream/
mod.rs

1//! Stream protocol based on websocket
2//! ```ignore
3//! // the client want's to start a sender stream
4//! Client > kind: SenderRequest action: "MyAction" data: request
5//! // the server acknowledge the request / or sends a SenderClose
6//! Server > kind: SenderRequest action: "MyAction" data: null
7//! // the client can now start to send messages
8//! Client > kind: SenderMessage action: "MyAction" data: message
9//! // either the client or the server can send a SenderClose
10//! // which will indicate that the stream should be terminated
11//! Server > kind: SenderClose action: "MyAction" data: null|error
12//! ```
13
14pub mod error;
15pub mod message;
16pub mod server;
17mod stream;
18pub mod streamer;
19pub mod util;
20
21pub use error::StreamError;
22pub use server::StreamServer;
23pub use stream::{Stream, StreamKind};
24pub use streamer::Streamer;