Repository navigation
v0.2.1 — Gateway Core
Pre-release
Pre-release
Gateway Core
Discord WebSocket Gateway support with full lifecycle management.
New Modules
- Dusk::Gateway::Connection — WebSocket state machine: connect → Hello → Identify → Ready → dispatch loop, with resume and reconnect support
- Dusk::Gateway::Dispatcher — Routes events to typed Supply streams (15 convenience methods)
- Dusk::Gateway::Heartbeat — Periodic heartbeat with ACK tracking and zombie connection detection
- Dusk::Gateway::Payload — Parsed gateway frame with opcode constants and predicates
- Dusk::Gateway::Intents — All Discord v10 Gateway Intent bit flags with presets
New Dependency
Cro::WebSocketfor WebSocket client
Tests
- 10 new gateway tests against real Discord fixtures
- Payload parsing, dispatcher routing, intent calculations all verified
Install
zef install Dusk