Skip to content

Commit

Permalink
fix node ws
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Oct 19, 2024
1 parent 1c22d8a commit cd2ae3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/engine.io-client/lib/transports/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export abstract class BaseWS extends Transport {

override doClose() {
if (typeof this.ws !== "undefined") {
this.ws.onclose = () => {};
this.ws.close();
this.ws = null;
}
Expand Down

0 comments on commit cd2ae3b

Please sign in to comment.