Expand description
§web-socket-io
It provides a robust framework for real-time communication over WebSocket, inspired by Socket.IO. It simplifies the process of sending and receiving messages while offering built-in support for cancellation and timeout functionalities.
§Features
- Request/Response: clients to send requests and receive responses from the server.
- Cancellation: mechanisms to cancel ongoing operations on requests.
- Bi-directional Notifications: allowing both clients and servers to notify each other of events instantly. similar to Socket.IO
§Learn More
- Tutorial - Step-by-step guide to get you started.
- Protocol Design - Overview of the protocol used for communication.
§License
This project is licensed under the MIT License.
Re-exports§
pub use web_socket;
Modules§
- error
- Error types
Structs§
- Abort
Controller AbortController
is a controller that allows you to monitor for a stream reset and cancel an associated asynchronous task if the reset occurs.- Notifier
Notifier
is used to send notifications, Sends notifications where no response expected.- Request
- Represents an incoming rpc request.
- Response
- Represents a response used to send the result of a rpc request.
- Socket
Io SocketIo
manages WebSocket communication for handling RPC events.
Enums§
- Procedure
Procedure
represents an RPC (Remote Procedure Call) or notification in the system.