cord-client 0.2.1

The client-side user interfaces for the Cord Platform that publish and subscribe messages to the Broker.
Documentation

Cord is a data streaming platform for composing, aggregating and distributing arbitrary streams. It uses a publish-subscribe model that allows multiple publishers to share their streams via a Cord Broker. Subscribers can then compose custom sinks using a regex-like pattern to access realtime data based on their individual requirements.

To interact with a Broker, we use this library:

Examples

use cord_client::Client;
# use cord_client::errors::Error;

# async fn test() -> Result<(), Error> {
let mut conn = Client::connect("127.0.0.1:7101".parse().unwrap()).await?;

// Tell the broker we're going to provide the namespace /users
conn.provide("/users".into()).await?;

// Start publishing events...
conn.event("/users/mark".into(), "Mark has joined").await?;

# Ok(())
# }

Cord CLI

For one-off interactions with a Broker, there is also the Cord CLI, which is available via Cargo:

$ cargo install cord-client
$ cord-client sub /namespaces

For more usage, check the usage guidelines on cord-proj.org.