Package discord4j.gateway
Components to create websocket clients targeting Discord gateway.
-
Interface Summary Interface Description GatewayClient Represents a Discord real-time websocket client, called Gateway, implementing its lifecycle.GatewayClientGroup An aggregation for arbitrary group ofGatewayClient
instances.GatewayObserver Event listeners for gateway connection lifecycle.PayloadHandler<T extends discord4j.discordjson.json.gateway.PayloadData> Handler for a gateway payload. -
Class Summary Class Description DefaultGatewayClient Represents a Discord WebSocket client, called Gateway, implementing its lifecycle.GatewayConnection GatewayOptions A set of options targeting the configuration ofGatewayClient
implementations.GatewayReactorResources Provides an extra level of configuration forReactorResources
, tailored for the Gateway operations.GatewayReactorResources.Builder Builder forGatewayReactorResources
.GatewayWebsocketHandler Represents a WebSocket handler specialized for Discord gateway operations.IdentifyOptions An object that contains parameters used for authenticating a bot to Discord gateway.IdentifyOptions.Builder Builder to createIdentifyOptions
.SessionInfo A container to represent the current state of a Gateway session.ShardInfo A container to express a shard index and count.ZlibDecompressor Implements a zlib inflater on a stream ofByteBuf
elements. -
Enum Summary Enum Description GatewayConnection.State