libwisp 0.2.0

a simple-to-use wisp rust library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use libwisp::{WispContext, WispSetServer, WispClose};
use tokio;

#[tokio::main]
async fn main() {
    let mut ctx = WispContext::new();

    // connect first
    WispSetServer(&mut ctx, "wss://wispserver.dev/wisp/").await;
    println!("connected.");

    // close connection for good practice
    WispClose(&mut ctx).await;
    println!("connection closed.");
}