#peer #websocket #router #wamp

battler-wamprat

Asynchronous library for strongly-typed WAMP peer messaging

6 releases

0.2.4 Jan 27, 2025
0.2.3 Jan 24, 2025
0.1.0 Jan 1, 2025

#520 in Encoding

Download history 158/week @ 2025-01-01 1/week @ 2025-01-08 334/week @ 2025-01-15 193/week @ 2025-01-22 35/week @ 2025-01-29

566 downloads per month

MIT license

430KB
9K SLoC

battler-wamprat

battler-wamp + RaT (Reconnection and Typing)

Latest Version

battler-wamprat is a Rust library and framework for peers communicating over the Web Application Message Protocol (WAMP).

The library is built on battler-wamp to provide more complex functionality:

  1. Strongly-typed procedure handling, procedure calls, event publication, and subscription event handling using built-in serialization and deserialization.
  2. Automatic reconnection and re-registration of procedures and subscriptions when a session is dropped.

The library uses tokio as its asynchronous runtime, and is ready for use on top of WebSocket streams.

What is WAMP?

WAMP is an open standard, routed protocol that provides two messaging patterns: Publish & Subscribe and routed Remote Procedure Calls. It is intended to connect application components in distributed applications. WAMP uses WebSocket as its default transport, but it can be transmitted via any other protocol that allows for ordered, reliable, bi-directional, and message-oriented communications.

The WAMP protocol specification is described at https://wamp-proto.org/spec.html.

Dependencies

~15–27MB
~484K SLoC