Skip to main content

Crate reliably

Crate reliably 

Source
Expand description

A fully-featured real-time Rust client for Ably.

§Example

use reliably::{AblyClient, Result};

#[tokio::main]
async fn main() -> Result<()> {
    let client = AblyClient::new("<api_key>")?;
    let channel = client.channels().get("my-channel");
    channel.publish().string("hello").send().await?;
    Ok(())
}

Re-exports§

pub use error::Error;
pub use error::Result;
pub use options::ClientOptions;
pub use rest::Data;
pub use rest::Rest;
pub use realtime::Realtime;
pub use connection::Connection;
pub use connection::ConnectionState;
pub use connection::ConnectionStateChange;
pub use realtime_channel::Channels;
pub use realtime_channel::RealtimeChannel;
pub use realtime_channel::ChannelState;
pub use realtime_channel::ChannelStateChange;

Modules§

auth
connection
Connection state machine and manager for the Ably realtime protocol.
crypto
error
http
options
presence
protocol
Ably realtime protocol types.
realtime
Realtime client — the top-level entry point for Ably Pub/Sub.
realtime_channel
Realtime channel — attach/detach state machine, publish, and subscribe.
realtime_presence
Realtime presence — enter, leave, update, subscribe, and presence sync.
rest
stats

Type Aliases§

AblyClient
Alias for Rest — the main Ably REST client.
AblyClientOptions
Alias for ClientOptions — configuration for the Ably client.