pub mod javascript;
pub use javascript::{generate_javascript_client, generate_typescript_definitions};
#[derive(Debug, Clone)]
pub struct ClientSdkConfig {
pub enable_typescript: bool,
pub enable_reconnection: bool,
pub enable_caching: bool,
pub reconnection_delay_ms: u64,
pub max_reconnection_attempts: u32,
}
impl Default for ClientSdkConfig {
fn default() -> Self {
Self {
enable_typescript: true,
enable_reconnection: true,
enable_caching: true,
reconnection_delay_ms: 1000,
max_reconnection_attempts: 10,
}
}
}