fix(WebSocketShard): backport error handler preservation on connections (#8164)

This commit is contained in:
DD
2022-06-23 22:13:33 +03:00
committed by GitHub
parent 7e1904c2ad
commit c198e893c9

View File

@@ -858,7 +858,8 @@ class WebSocketShard extends EventEmitter {
* @private
*/
_cleanupConnection() {
this.connection.onopen = this.connection.onclose = this.connection.onerror = this.connection.onmessage = null;
this.connection.onopen = this.connection.onclose = this.connection.onmessage = null;
this.connection.onerror = () => null;
}
/**