DefaultGatewayData
constructor(url: String, client: HttpClient, reconnectRetry: Retry, sendRateLimiter: RateLimiter, identifyRateLimiter: IdentifyRateLimiter, dispatcher: CoroutineDispatcher, eventFlow: MutableSharedFlow<Event>)(source)
Parameters
url
The url to connect to.
client
The HttpClient from which a WebSocket will be created, requires the WebSockets plugin to be installed.
reconnectRetry
A Retry used for reconnection attempts.
sendRateLimiter
A RateLimiter that follows the Discord API specifications for sending messages.
identifyRateLimiter
An IdentifyRateLimiter that follows the Discord API specifications for identifying.