Options: {
autoReconnect?: boolean;
connect?: boolean;
connectMaxAttempts?: number;
onClose?: (() => void);
onConnect?: (() => void);
reconnectDelayMillis?: number;
websocketUrl?: string;
}
Type declaration
-
Optional
autoReconnect?: boolean
-
Optional
connect?: boolean
-
Optional
connectMaxAttempts?: number
-
Optional
onClose?: (() => void)
-
Optional
onConnect?: (() => void)
-
Optional
reconnectDelayMillis?: number
-
Optional
websocketUrl?: string