Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gateway+wsutil: Skip unknown events while reconnecting #255

Merged
merged 1 commit into from Aug 4, 2021

Conversation

hhhapz
Copy link
Contributor

@hhhapz hhhapz commented Aug 3, 2021

This change skips events that are unknown while the bot reconnects. This
is an event that is particularly rare as it requires unimplemented
events being called in the time before a bot's HELLO -> RESUME events
are called. This change explicitly returns unknown events as a special
time defined in wsutil/op.go and ignores them from reaching gateway/op.g

This change skips events that are unknown while the bot reconnects. This
is an event that is particularly rare as it requires unimplemented
events being called in the time before a bot's HELLO -> RESUME events
are called. This change explicitly returns unknown events as a special
time defined in wsutil/op.go and ignores them from reaching gateway/op.g
@hhhapz hhhapz changed the title gateway+wsutil: Skip unknown events while reconnecting WIP: gateway+wsutil: Skip unknown events while reconnecting Aug 3, 2021
@hhhapz hhhapz changed the title WIP: gateway+wsutil: Skip unknown events while reconnecting gateway+wsutil: Skip unknown events while reconnecting Aug 3, 2021
@diamondburned diamondburned merged commit 0d7774b into diamondburned:v3 Aug 4, 2021
@hhhapz hhhapz deleted the fix-unknown-reconn branch August 4, 2021 01:02
diamondburned pushed a commit that referenced this pull request Oct 28, 2021
This change skips events that are unknown while the bot reconnects. This
is an event that is particularly rare as it requires unimplemented
events being called in the time before a bot's HELLO -> RESUME events
are called. This change explicitly returns unknown events as a special
time defined in wsutil/op.go and ignores them from reaching gateway/op.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants