1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! 一个简易的 Socket.IO 客户端库。
//! A simple Socket.IO client library.
//!
//! 提供了类似 `socketioxide` 的服务端开发体验,包括通过 `ClientApp` 管理全局状态、
//! Provides a server-side development experience similar to `socketioxide`, including managing global state through `ClientApp`,
//! 注册不同命名空间(Namespace)以及基于 Extractor 机制的事件路由注册方法。
//! registering different namespaces (Namespace), and event routing registration methods based on the Extractor mechanism.
//!
//! 核心组件:
//! Core components:
//! - [`ClientApp`] - 客户端主容器,负责管理各个命名空间及断线重连逻辑。
//! - [`ClientApp`] - Main client container, responsible for managing namespaces and auto-reconnection logic.
//! - [`ClientSocketRef`] - 代表一个关联到特定命名空间的 Socket 引用,可用于发送事件及加入房间。
//! - [`ClientSocketRef`] - Represents a Socket reference associated with a specific namespace, which can be used to emit events and join rooms.
//! - `Extractor` 机制:通过 `Socket`, `Data`, `State`, `Ack` 自动提取事件参数。
//! - `Extractor` mechanism: Automatically extracts event parameters via `Socket`, `Data`, `State`, `Ack`.
/// 客户端主容器,支持全局状态及命名空间管理。
/// Main client container, supports global state and namespace management.
/// 绑定了命名空间的 Socket 引用对象。
/// Socket reference object bound to a namespace.
/// Socket.IO 协议编码解码函数辅助库。
/// Socket.IO protocol encoding and decoding function helper library.
/// 事件处理参数自动提取器(Extractor)。
/// Automatic event handler parameter extractors.
/// Socket.IO 底层协议的 WebSocket 和 Polling 传输实现。
/// WebSocket and Polling transport implementation of the underlying Socket.IO protocol.
// re-exports for easy use
pub use ClientApp;
pub use ClientSocketRef;
pub use ;
pub use ;
pub use ;