Update y-websocket.js

This commit is contained in:
John Blyberg
2024-02-20 12:04:52 -05:00
committed by GitHub
parent 25ee3f0add
commit b25c89c7c5

View File

@@ -399,7 +399,7 @@ export class WebsocketProvider extends Observable {
}
clearInterval(this._checkInterval)
this.disconnect()
if (typeof process !== 'undefined') {
if (env.isNode && typeof process !== 'undefined') {
process.off('exit', this._exitHandler)
}
this.awareness.off('update', this._awarenessUpdateHandler)