The realtime connection
Extending Kemble
Connect to /api/ws with your bearer token. The socket carries messages, typing, presence and voice state for everything you can see, on one connection — a client does not open a socket per channel.
Presence is reference-counted per account, so a second device does not mark you offline when it disconnects. Typing and voice state are ephemeral and are never persisted.