Wumpy-gateway v0.2.0
This is a pretty significant minor version bump since the original v0.1.0 release adding a bunch of features that have been worked on since.
The gateway is much more stable now and should handle any spontaneous failures.
Changes
Breaking changes
- Removed the
Shard.connect()
classmethod in favour of instantiating the Shard
Features
- Add
shard_id
kwarg to manage multiple shards - Ratelimit gateway commands with replaceable ratelimiter
- Add
ratelimiter
andmax_concurrency
kwargs calculating ratelimit bucket for shard
- Add
- Allow specifying the gateway encoding
- Allow setting up custom
SSLContext
for the underlying TLS-enabled TCP socket (useful for testing) - Setup complete logging with the built-in
logging
module
Fixes
- Start expontentially backoff on reconnecting
- Handle all kinds of abrupt disconnect errors
- Handle
discord-gateway
signaling a closure when sending itNone
- Stop reconnecting on terminal error codes that needs raising