connectanum 1.0.0-dev.2 icon indicating copy to clipboard operation
connectanum: ^1.0.0-dev.2 copied to clipboard


This is a WAMP client (Web Application Messaging Protocol) implementation for the dart language and flutter projects.

connectanum-dart #

This is a WAMP client implementation for the dart language and flutter projects. The projects aims to provide a simple and extensible structure that is easy to use. With this project I want return something to the great WAMP-Protocol community.

WAMP is trademark of Technologies GmbH.


  • add code coverage report
  • add github runners to test code with multiple dart versions
  • Multithreading for callee invocations
    • callee interrupt thread on incoming cancellations
  • better docs
  • msgpack serializer
  • unit test websocket transport
  • get the auth id that called a method
  • handle ping pong times
  • auto reconnect handling, but keep abstract socket interface
    • difference between intentionally and unintentionally disconnect
    • websocket has error and regular close event. use them if possible or use close with internal state from this package?

Supported WAMP features #

Authentication #

Advanced RPC features #

  • Progressive Call Results
  • Progressive Calls
  • Call Timeouts
  • Call Canceling
  • Caller Identification
  • Call Trust Levels
  • Shared Registration
  • Sharded Registration

Advanced PUB/SUB features #

  • Subscriber Black- and Whitelisting
  • Publisher Exclusion
  • Publisher Identification
  • Publication Trust Levels
  • Pattern-based Subscriptions
  • Sharded Subscriptions
  • Subscription Revocation

Stream model #

The transport contains an incoming stream that is usually a single subscribe stream. A session will internally open a new broadcast stream as soon as the authentication process is successful. The transport stream subscription passes all incoming messages to the broad cast stream. If the transport stream is done, the broadcast stream will close as well. The broad cast stream is used to handle all session methods. The user will never touch the transport stream directly.

Start the client #

To start a client you need to choose a transport module and connect it to the desired endpoint. When the connection has been established you can start to negotiate a client session by calling the client.connect() method from the client instance. On success the client will return a session object.

If your transport disconnects the session will invalidate. If a reconnect is configured, the session will try to authenticate an revalidate the session again. All subscriptions and registrations will be recovered if possible.

final client = Client(
  realm: "my.realm",transport: new WebSocketTransport("wss://localhost:8443")
final session = await client.connect();


to work with RPCs you need to have an established session.

final client = Client(
  realm: "my.realm",new WebSocketTransport("wss://localhost:8443")
final session = await client.connect();

// Register a procedure
final registered = await session.register("my.procedure");
registered.onInvoke((invocation) {
  // to something with the invocation

// Call a procedure
await for (final result in"my.procedure")) {
  // do something with the result
pub points


verified publisher

This is a WAMP client (Web Application Messaging Protocol) implementation for the dart language and flutter projects.

Repository (GitHub)
View/report issues


Icon for licenses.unknown (LICENSE)


logging, pointycastle


Packages that depend on connectanum