arikawa/utils
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
..
handler Handler: Use a free list over a linked list 2020-10-28 23:55:39 -07:00
httputil httputil: Fix Timeout causing premature cancelation 2021-01-24 22:45:56 -08:00
json Option: fix nullable types getting serialized to nil on JSON null 2020-11-22 09:33:33 -08:00
sendpart API: Add File.AttachmentURI for convenience 2021-02-24 01:59:33 -08:00
wsutil Gateway: Sharding callback, proper closing (#190) 2021-04-07 11:38:26 -07:00