Type Alias ClientOptions

ClientOptions: Partial<EventClientOptions> & {
    autoReconnect: boolean;
    baseURL: string;
    eagerFetching: boolean;
    messageRewrites: boolean;
    partials: boolean;
    syncUnreads: boolean;
    channelIsMuted(channel: Channel): boolean;
    retryDelayFunction(retryCount: number): number;
}

Client options object

Type declaration

  • autoReconnect: boolean

    Whether to reconnect when disconnected

    true
    
  • baseURL: string

    Base URL of the API server

  • eagerFetching: boolean

    Whether to eagerly fetch users and members for incoming events

    true
    
  • messageRewrites: boolean

    Whether to rewrite sent messages that include identifiers such as

    true
    
  • partials: boolean

    Whether to allow partial objects to emit from events

    false
    
  • syncUnreads: boolean

    Whether to automatically sync unreads information

    false
    
  • channelIsMuted:function
    • Check whether a channel is muted

      Parameters

      Returns boolean

      Whether it is muted

      false
      
  • retryDelayFunction:function
    • Retry delay function

      Parameters

      • retryCount: number

        Count

      Returns number

      Delay in seconds

      (2^x-1) ±20%