Module fire_http_api::stream 
source · Available on crate feature 
feature only.Expand description
Stream protocol based on websocket
ⓘ
// the client want's to start a sender stream
Client > kind: SenderRequest action: "MyAction" data: request
// the server acknowledge the request / or sends a SenderClose
Server > kind: SenderRequest action: "MyAction" data: null
// the client can now start to send messages
Client > kind: SenderMessage action: "MyAction" data: message
// either the client or the server can send a SenderClose
// which will indicate that the stream should be terminated
Server > kind: SenderClose action: "MyAction" data: null|errorRe-exports§
- pub use error::StreamError;
- pub use server::StreamServer;
- pub use streamer::Streamer;
Modules§
- The names are in the perspective of the client
Enums§
- Note
Traits§
- The struct of the stream itself is like a request to start the stream