DefaultGatewayData
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.
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.
Constructors
Link copied to clipboard
constructor(url: String, client: HttpClient, reconnectRetry: Retry, sendRateLimiter: RateLimiter, identifyRateLimiter: IdentifyRateLimiter, dispatcher: CoroutineDispatcher, eventFlow: MutableSharedFlow<Event>)