polfan-server-js-client 0.2.63 → 0.2.64

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.63",
3
+ "version": "0.2.64",
4
4
  "description": "JavaScript client library for handling communication with Polfan chat server.",
5
5
  "author": "Jarosław Żak",
6
6
  "license": "MIT",
@@ -37,6 +37,10 @@ export class WebSocketChatClient extends AbstractChatClient implements Observabl
37
37
  }
38
38
 
39
39
  public async connect(): Promise<void> {
40
+ if (this.isReadyToSendWsState() || this.isPendingReadyWsState()) {
41
+ return;
42
+ }
43
+
40
44
  const params = new URLSearchParams(this.options.queryParams ?? {});
41
45
  params.set('token', this.options.token);
42
46