Type alias Options

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)
      • (): void
      • Returns void

  • Optional onConnect?: (() => void)
      • (): void
      • Returns void

  • Optional reconnectDelayMillis?: number
  • Optional websocketUrl?: string

Generated using TypeDoc