oxigdal_websocket/client_sdk/
mod.rs1pub mod javascript;
7
8pub use javascript::{generate_javascript_client, generate_typescript_definitions};
9
10#[derive(Debug, Clone)]
12pub struct ClientSdkConfig {
13 pub enable_typescript: bool,
15 pub enable_reconnection: bool,
17 pub enable_caching: bool,
19 pub reconnection_delay_ms: u64,
21 pub max_reconnection_attempts: u32,
23}
24
25impl Default for ClientSdkConfig {
26 fn default() -> Self {
27 Self {
28 enable_typescript: true,
29 enable_reconnection: true,
30 enable_caching: true,
31 reconnection_delay_ms: 1000,
32 max_reconnection_attempts: 10,
33 }
34 }
35}