#ws #sockets #clients #bidirectional #server #communication

web-socket-io

A protocol for event-driven, bi-directional communication between clients and servers

1 unstable release

0.1.0 Sep 27, 2024

#122 in WebSocket


Used in axum-socket-io

MIT license

18KB
354 lines

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.

Dependencies

~2.4–8MB
~55K SLoC