sms-client 3.1.0

Rust client library for sms-server - send/receive SMS through your own GSM hardware with HTTP/WebSocket support and no API subscriptions.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! WebSocket client for receiving real-time SMS messages.

pub mod error;
pub mod events;

mod client;
mod connection;
mod tls;
mod worker;

pub use client::WebSocketClient;
pub use error::{WebsocketError, WebsocketResult};

/// A callback to be run when the websocket receives a message.
pub type MessageCallback = std::sync::Arc<dyn Fn(events::WebsocketEvent) + Send + Sync>;