Type alias ClientOptions

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

Client options object

Type declaration

  • autoReconnect: boolean

    Whether to reconnect when disconnected

    Default

    true
    
  • baseURL: string

    Base URL of the API server

  • eagerFetching: boolean

    Whether to eagerly fetch users and members for incoming events

    Default

    true
    

    Deprecated

  • messageRewrites: boolean

    Whether to rewrite sent messages that include identifiers such as

    Silent

    Default

    true
    
  • partials: boolean

    Whether to allow partial objects to emit from events

    Default

    false
    
  • syncUnreads: boolean

    Whether to automatically sync unreads information

    Default

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

      Parameters

      Returns boolean

      Whether it is muted

      Default

      false
      
  • retryDelayFunction:function
    • Retry delay function

      Parameters

      • retryCount: number

        Count

      Returns number

      Delay in seconds

      Default

      (2^x-1) ±20%
      

Generated using TypeDoc