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

src: Fix resume event not being emitted properly #3192

Merged
merged 6 commits into from Apr 21, 2019

Conversation

vladfrangu
Copy link
Member

@vladfrangu vladfrangu commented Apr 9, 2019

Please describe the changes this PR makes and why it should be merged:

Per #3191, the resumed event was not properly being emitted. This PR solves this, and closes #3191.

Status

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating

Semantic versioning classification:

  • This PR changes the library's interface (methods or parameters added)
    • This PR includes breaking changes (methods removed or renamed, parameters moved or removed)
  • This PR only includes non-code changes, like changes to documentation, README, etc.

@SpaceEEC SpaceEEC added t: voice and removed t: voice labels Apr 9, 2019
src/client/websocket/WebSocketShard.js Show resolved Hide resolved
@xonrsoftware
Copy link

Several bots staying up for already six days.
Seems like bd8ac4d fixed silent disconnect issue.

@SpaceEEC SpaceEEC merged commit 1514df0 into discordjs:master Apr 21, 2019
samsamson33 pushed a commit to samsamson33/discord.js that referenced this pull request Feb 27, 2020
…djs#3192)

* src: Fix shardResumed event not being emitted

* docs: Document Client#error again

* src: Fix onError due to incorrect typings

* src: handle onError properly for both uws and ws

* src: Try to fix silent disconnects when using uWs

* fix(WebSocketShard): uws emits plain objects, not errors

Emitting line of code: https://github.com/discordjs/uws/blob/39aa429f94d9668608f69848b3a84db3a3e92914/src/uws.js#L80-L83
Listener attaching is here: https://github.com/discordjs/uws/blob/master/src/uws.js#L128
For reference, found a clue here: discordjs#1528
samsamson33 added a commit to samsamson33/discord.js that referenced this pull request Feb 27, 2020
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.

shardResumed & resume event doesn't seem to emit.
3 participants