Variable DefaultWebSocketManagerOptionsConst

DefaultWebSocketManagerOptions: {
    buildIdentifyThrottler: ((manager) => Promise<SimpleIdentifyThrottler>);
    buildStrategy: ((manager) => SimpleShardingStrategy);
    compression: null;
    encoding: Encoding;
    handshakeTimeout: 30000;
    helloTimeout: 60000;
    identifyProperties: {
        browser: `@discordjs/ws ${string}`;
        device: `@discordjs/ws ${string}`;
        os: NodeJS.Platform;
    };
    initialPresence: null;
    largeThreshold: null;
    readyTimeout: 15000;
    retrieveSessionInfo: ((shardId) => SessionInfo | null);
    shardCount: null;
    shardIds: null;
    updateSessionInfo: ((shardId, info) => void);
    version: "10";
}

Default options used by the manager

Type declaration

  • Readonly buildIdentifyThrottler: ((manager) => Promise<SimpleIdentifyThrottler>)
  • Readonly buildStrategy: ((manager) => SimpleShardingStrategy)
  • Readonly compression: null
  • Readonly encoding: Encoding
  • Readonly handshakeTimeout: 30000
  • Readonly helloTimeout: 60000
  • Readonly identifyProperties: {
        browser: `@discordjs/ws ${string}`;
        device: `@discordjs/ws ${string}`;
        os: NodeJS.Platform;
    }
    • Readonly browser: `@discordjs/ws ${string}`
    • Readonly device: `@discordjs/ws ${string}`
    • Readonly os: NodeJS.Platform
  • Readonly initialPresence: null
  • Readonly largeThreshold: null
  • Readonly readyTimeout: 15000
  • Readonly retrieveSessionInfo: ((shardId) => SessionInfo | null)
  • Readonly shardCount: null
  • Readonly shardIds: null
  • Readonly updateSessionInfo: ((shardId, info) => void)
      • (shardId, info): void
      • Parameters

        Returns void

  • Readonly version: "10"

Generated using TypeDoc