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_idkwarg to manage multiple shards - Ratelimit gateway commands with replaceable ratelimiter
- Add
ratelimiterandmax_concurrencykwargs calculating ratelimit bucket for shard
- Add
- Allow specifying the gateway encoding
- Allow setting up custom
SSLContextfor the underlying TLS-enabled TCP socket (useful for testing) - Setup complete logging with the built-in
loggingmodule
Fixes
- Start expontentially backoff on reconnecting
- Handle all kinds of abrupt disconnect errors
- Handle
discord-gatewaysignaling a closure when sending itNone - Stop reconnecting on terminal error codes that needs raising