Skip to content

Commit

Permalink
fix: closing the socket too early (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeocodes authored Nov 16, 2023
1 parent 0dce6e5 commit 3760848
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/packages/LiveClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,5 @@ export class LiveClient extends AbstractWsClient {
type: "CloseStream",
})
);

// close the socket from the client end
if (this._socket.readyState === LiveConnectionState.OPEN) {
this._socket.close();
}
}
}

0 comments on commit 3760848

Please sign in to comment.