iridium-stomp 0.4.1

Async STOMP 1.2 client for Rust
Documentation
use iridium_stomp::Connection;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    // This example expects a STOMP broker on localhost:61613 (e.g. RabbitMQ with stomp plugin).
    // Start a local broker before running: `docker compose up -d`

    let conn = Connection::connect(
        "127.0.0.1:61613",
        "guest",
        "guest",
        Connection::DEFAULT_HEARTBEAT,
    )
    .await?;

    conn.send("/queue/test", "hello from iridium-stomp").await?;

    println!("Message sent");
    conn.close().await;
    Ok(())
}