partysocket
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -422,3 +422,5 @@ "use strict"; | ||
try { | ||
this._ws.close(code, reason); | ||
if (this._ws.readyState === this.OPEN) { | ||
this._ws.close(code, reason); | ||
} | ||
this._handleClose(new Events.CloseEvent(code, reason, this)); | ||
@@ -425,0 +427,0 @@ } catch (error) { |
@@ -422,3 +422,5 @@ "use strict"; | ||
try { | ||
this._ws.close(code, reason); | ||
if (this._ws.readyState === this.OPEN) { | ||
this._ws.close(code, reason); | ||
} | ||
this._handleClose(new Events.CloseEvent(code, reason, this)); | ||
@@ -425,0 +427,0 @@ } catch (error) { |
@@ -496,3 +496,5 @@ "use strict"; | ||
try { | ||
this._ws.close(code, reason); | ||
if (this._ws.readyState === this.OPEN) { | ||
this._ws.close(code, reason); | ||
} | ||
this._handleClose(new Events.CloseEvent(code, reason, this)); | ||
@@ -499,0 +501,0 @@ } catch (error) { |
@@ -420,3 +420,5 @@ "use strict"; | ||
try { | ||
this._ws.close(code, reason); | ||
if (this._ws.readyState === this.OPEN) { | ||
this._ws.close(code, reason); | ||
} | ||
this._handleClose(new Events.CloseEvent(code, reason, this)); | ||
@@ -423,0 +425,0 @@ } catch (error) { |
{ | ||
"name": "partysocket", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A better WebSocket that Just Works™", | ||
@@ -5,0 +5,0 @@ "homepage": "https://docs.partykit.io/reference/partysocket-api", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
116503
3567