Skip to content

Commit c198e89

Browse files
authored
fix(WebSocketShard): backport error handler preservation on connections (#8164)
1 parent 7e1904c commit c198e89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/client/websocket/WebSocketShard.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,8 @@ class WebSocketShard extends EventEmitter {
858858
* @private
859859
*/
860860
_cleanupConnection() {
861-
this.connection.onopen = this.connection.onclose = this.connection.onerror = this.connection.onmessage = null;
861+
this.connection.onopen = this.connection.onclose = this.connection.onmessage = null;
862+
this.connection.onerror = () => null;
862863
}
863864

864865
/**

0 commit comments

Comments
 (0)