1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-05 06:26:08 +00:00
arikawa/utils/wsutil
Maximilian von Lindern ebc74e3168
Gateway: Sharding callback, proper closing (#190)
* Gateway: Fix gateway reconnect

This commit uses the correct timeout, Gateway.ReconnectTimeout, when reconnecting. Furthermore, it adds a delay between consecutive, failed reconnects.

* Gateway: Stop pacemaker when calling Gateway.CloseGracefully

* API: remove unnecessary leading/trailing whitespaces

* Gateway: Add Gateway.OnScalingRequired callback

* Gateway: Make all user initiated user closures graceful and ensure that closures are respected during reconnects

* Gateway: Fix typo

* Gateway: Add Gateway.ReconnectAttempts and deprecate .ReconnectTimeout

* Gateway: Add Gateway.Pause and reexport .Reconnect and .ReconnectCtx

* Gateway: Improve the Gateway.OnShardingRequired docs

* Wsutil: Code cleanup
2021-04-07 11:38:26 -07:00
..
conn.go Gateway: Add graceful closing with CloseGracefully (#185) 2021-01-29 20:25:10 -08:00
heart.go CI: Add perseverance test for Gateway 2020-12-31 23:48:29 -08:00
op.go *: Migrated Go Modules to v2 2020-10-28 15:39:59 -07:00
throttler.go Gateway: Allow for more lenient gateway bursts 2020-07-14 18:47:15 -07:00
ws.go Gateway: Sharding callback, proper closing (#190) 2021-04-07 11:38:26 -07:00