Skip to content

v0.2.1 — Gateway Core

Pre-release
Pre-release

Choose a tag to compare

@manelsen manelsen released this 24 Feb 21:38
· 29 commits to master since this 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::WebSocket for WebSocket client

Tests

  • 10 new gateway tests against real Discord fixtures
  • Payload parsing, dispatcher routing, intent calculations all verified

Install

zef install Dusk