[−][src]Crate ws_stream_wasm
Re-exports
pub use error::Error as WsErr; |
pub use error::ErrorKind as WsErrKind; |
Modules
error | Crate specific errors. |
Structs
CloseEvent | An event holding information about how the connection was closed. |
NextEvent | Future that resolves to the next WsEvent filtered to the type(s) you want. |
WsEventType | The different types of events a WebSocket can generate. This is used for filtering in NextEvent. |
WsIo | A futures 0.3 Sink/Stream of WsMessage. It further implements AsyncRead/AsyncWrite that can be framed with codecs. You can use the compat layer from the futures library if you want to use tokio codecs. See the integration tests if you need an example. |
WsStream | The meta data related to a websocket. |
Enums
WsEvent | Events related to the WebSocket |
WsMessage | Represents a WebSocket Message, after converting from JavaScript type. |
WsState | Indicates the state of a Websocket connection. The only state in which it's valid to send and receive messages is WsState::Open. |