Default Gateway Data
data class DefaultGatewayData(val url: String, val client: HttpClient, val reconnectRetry: Retry, val sendRateLimiter: RateLimiter, val identifyRateLimiter: IdentifyRateLimiter, val dispatcher: CoroutineDispatcher, val 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.
reconnect Retry
A Retry used for reconnection attempts.
send Rate Limiter
A RateLimiter that follows the Discord API specifications for sending messages.
identify Rate Limiter
An IdentifyRateLimiter that follows the Discord API specifications for identifying.
Constructors
Link copied to clipboard
constructor(url: String, client: HttpClient, reconnectRetry: Retry, sendRateLimiter: RateLimiter, identifyRateLimiter: IdentifyRateLimiter, dispatcher: CoroutineDispatcher, eventFlow: MutableSharedFlow<Event>)