cordis-lib / cordis

Modular, micro-service based Discord API wrapper written in TS.
https://cordis.js.org
Other
29 stars 1 forks source link

fix(WebscoketConnection): actually identify if not reconnecting #65

Closed didinele closed 3 years ago

didinele commented 3 years ago

Please describe the changes this PR makes and why it should be merged: This PR fixes a bug added in by #60, causing the gateway to never send the identify payload inside of _onOpen, as a result, the gateway waits for a ready payload but never recieves it, destroys itself and just loops over.

Note: I won't be making a full emergency release just for this. @cordis/gateway as itself will stay broken until Sunday, however I will be pushing the fix to latest on Docker Hub.

Status and versioning classification: