UNPKG

@dressed/ws

Version:

Communicate with the Discord Gateway

9 lines (8 loc) 382 B
import type { ConnectionActions } from "./gateway.ts"; /** * Automatically check/reshard the connection every so often * * **This is used by default within `createConnection`** * @returns The reshard interval (for you to clear etc.) */ export declare function startAutoResharder(connection: ConnectionActions, interval?: number, capacity?: number): NodeJS.Timeout | undefined;