#peer #websocket #router #wamp

battler-wamprat

Asynchronous library for strongly-typed WAMP peer messaging

1 unstable release

0.1.0 Jan 1, 2025

#670 in Encoding

Download history 158/week @ 2025-01-01

158 downloads per month

MIT license

38KB
893 lines

battler-wamprat

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

~16–27MB
~485K SLoC