Internal Create a new gateway client.
Optional emitOptional logimport { GatewayClient, RESTClient } from 'eludris.js';
// <snip> - Create your REST client and authenticate.
const gateway = new GatewayClient({
rest,
logEvents: true,
});
If emitRawEvents is false and logEvents is true.
Whether to emit raw events.
The event emitter. You can listen to events using this.
The interval for sending heartbeats.
The REST client used.
The WebSocket connection.
Private heartbeatSend data to the gateway.
The data to send.
If the client is not connected.
A client for interacting with the Eludris gateway.