Skip to main content

sms_client/ws/
mod.rs

1//! WebSocket client for receiving real-time SMS messages.
2
3pub mod error;
4pub mod events;
5
6mod client;
7mod connection;
8mod tls;
9mod worker;
10
11pub use client::WebSocketClient;
12pub use error::{WebsocketError, WebsocketResult};
13
14/// A callback to be run when the websocket receives a message.
15pub type MessageCallback = std::sync::Arc<dyn Fn(events::WebsocketEvent) + Send + Sync>;