@NonNullApi
Package discord4j.gateway
Components to create websocket clients targeting Discord gateway.
-
Interface Summary Interface Description GatewayLimiter Represents a rate-limiting strategy that can be shared across shards.GatewayObserver Event listeners for gateway connection lifecycle.PayloadHandler<T extends PayloadData> Handler for a gateway payload. -
Class Summary Class Description DiscordWebSocketHandler Represents a WebSocket handler specialized for Discord gateway operations.GatewayClient Represents a Discord WebSocket client, called Gateway, implementing its lifecycle.IdentifyOptions An object that contains all the parameters used for identifying a bot to Discord gateway.PayloadContext<T extends PayloadData> Represents gateway payload data enriched with context for processing through aPayloadHandler
defined underPayloadHandlers
PayloadHandlers Registry for operating on gatewayPayloadData
objects, handling each lifecycleOpcode
.SimpleBucket Naive implementation of a rate-limiter that issues a certain amount of permits before requiring consumers to wait until the permits are refilled.ZlibDecompressor Implements a zlib inflater on a stream ofByteBuf
elements.