Optionalevent: keyof GatewayEventsConnects and resolves once the gateway's hello frame arrives.
Sends a raw gateway packet. Throws if the socket is not open.
Subscribes to guild events. The subscription is replayed on reconnect.
Marks the account as idle (true) or active (false).
Flackle's realtime gateway.
The wire format is newline-delimited JSON (
{ "type": "...", "payload": {...} }). A connection is authenticated with a short-lived ticket from/api/ws/url.