Skip to content

@mastondzn/dank-twitch-irc / ConnectionRateLimiter

Class: ConnectionRateLimiter

Implements

Constructors

new ConnectionRateLimiter(client)

new ConnectionRateLimiter(client): ConnectionRateLimiter

Parameters

client: ChatClient

Returns

ConnectionRateLimiter

Source

src/mixins/ratelimiters/connection.ts:17

Properties

client

private readonly client: ChatClient

Source

src/mixins/ratelimiters/connection.ts:14


semaphore

private readonly semaphore: Sema

Source

src/mixins/ratelimiters/connection.ts:15

Methods

acquire()

acquire(): Promise<void>

Returns

Promise<void>

Source

src/mixins/ratelimiters/connection.ts:25


applyToClient()

applyToClient(client): void

Parameters

client: ChatClient

Returns

void

Implementation of

ClientMixin.applyToClient

Source

src/mixins/ratelimiters/connection.ts:53


applyToConnection()

applyToConnection(connection): void

Parameters

connection: SingleConnection

Returns

void

Implementation of

ConnectionMixin.applyToConnection

Source

src/mixins/ratelimiters/connection.ts:57


releaseOnConnect()

releaseOnConnect(conn): void

Parameters

conn: SingleConnection

Returns

void

Source

src/mixins/ratelimiters/connection.ts:29