RealtimeConfig typedef
Real-time configuration options.
Contains settings for real-time WebSocket connections including heartbeat intervals and auto-disconnect delays.
Example
final config = RealtimeConfig(
autoDisconnectDelay: 60, // 60 seconds
heartbeatInterval: 30, // 30 seconds
);
Implementation
typedef RealtimeConfig = ({
/// Auto-disconnect delay in seconds when no locks are held.
/// Set to 0 to disable auto-disconnect. Defaults to 60 seconds.
int? autoDisconnectDelay,
/// Heartbeat interval in seconds for keep-alive ping messages.
/// Set to 0 to disable heartbeat. Defaults to 0 (disabled).
int? heartbeatInterval,
});