pikav-client 0.20.14

A client that help you publish to pikav server
docs.rs failed to build pikav-client-0.20.14
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: pikav-client-0.13.1

A client that help you publish to pikav server


Getting Started

use serde_json::json;
use pikav_client::{Client, ClientOptions, Event};

#[tokio::main]
async fn main() -> std::io::Result<()> {
    let pikva_client = Client::new(ClientOptions {
        url: "http://127.0.0.1:6750".to_owned(),
        namespace: None,
    });

    client.publish(vec![Event::new(
            user.0,
            "todos/1",
            "Deleted",
            json!({
                "id": id.to_owned()
            }),
        )
        .unwrap()]);
}