-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent events from being dropped during the connection process (#612)
* Spawn all shards before identifying; add identify delay even when not in the initial connection phase. * Revert example * Buffer gateway events until client is ready; avoid parsing gateway events multiple times. * Add log message when identifying to the Gateway * Prevent identify locks when Gateway is closing * Ensure Gateway.events is a broadcast stream * Check for remaining identify requests at every identify * Refactor resumability check in shard * Add more logging for shards * Correct shard starting delay calculation * Add test for multiple shards
- Loading branch information
1 parent
896004a
commit bb54de1
Showing
6 changed files
with
188 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.