#wamp #websocket #router #peer

battler-wamprat

Asynchronous library for strongly-typed WAMP peer messaging

10 releases

Uses new Rust 2024

0.3.3 Mar 23, 2025
0.3.2 Mar 23, 2025
0.2.4 Jan 27, 2025
0.1.0 Jan 1, 2025

#3 in #wamp

Download history 155/week @ 2024-12-31 4/week @ 2025-01-07 299/week @ 2025-01-14 202/week @ 2025-01-21 45/week @ 2025-01-28 9/week @ 2025-02-04 1/week @ 2025-02-18 3/week @ 2025-02-25 1/week @ 2025-03-04 469/week @ 2025-03-18 52/week @ 2025-03-25

523 downloads per month
Used in 2 crates

MIT license

505KB
11K 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

~19–30MB
~552K SLoC