polfan-server-js-client 0.2.67 → 0.2.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polfan-server-js-client",
3
- "version": "0.2.67",
3
+ "version": "0.2.69",
4
4
  "description": "JavaScript client library for handling communication with Polfan chat server.",
5
5
  "author": "Jarosław Żak",
6
6
  "license": "MIT",
@@ -188,8 +188,7 @@ export class WebSocketChatClient extends AbstractChatClient implements Observabl
188
188
 
189
189
  const timeout = setTimeout(() => {
190
190
  this.pingInFlight = false;
191
- this.disconnect();
192
- void this.connect();
191
+ this.ws.close(1008); // Service Restart (reconnect)
193
192
  }, this.options.ping.pongBackTimeoutMs);
194
193
 
195
194
  this.pingInFlight = true;