@eleven-am/pondsocket 0.1.39 → 0.1.41

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/client/channel.js CHANGED
@@ -35,7 +35,6 @@ class Channel {
35
35
  else {
36
36
  this._queue.push(joinMessage);
37
37
  }
38
- this._publish(joinMessage);
39
38
  }
40
39
  /**
41
40
  * @desc Disconnects from the channel.
@@ -208,7 +207,9 @@ class Channel {
208
207
  payload: this._joinParams,
209
208
  };
210
209
  this._publisher(joinMessage);
211
- this._queue.forEach((message) => {
210
+ this._queue
211
+ .filter((message) => message.action !== enums_1.ClientActions.JOIN_CHANNEL)
212
+ .forEach((message) => {
212
213
  this._publisher(message);
213
214
  });
214
215
  this._joinState.publish(true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eleven-am/pondsocket",
3
- "version": "0.1.39",
3
+ "version": "0.1.41",
4
4
  "description": "PondSocket is a fast simple socket server",
5
5
  "keywords": [
6
6
  "socket",
@@ -21,8 +21,8 @@
21
21
  },
22
22
  "author": "Roy OSSAI",
23
23
  "license": "GPL-3.0",
24
- "main": "dist/index.js",
25
- "types": "dist/index.d.ts",
24
+ "main": "index.js",
25
+ "types": "index.d.ts",
26
26
  "repository": {
27
27
  "type": "git",
28
28
  "url": "git+https://github.com/Eleven-am/pondSocket.git"