@eleven-am/pondsocket 0.1.54 → 0.1.55

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.
@@ -52,7 +52,7 @@ class ChannelEngine {
52
52
  const oldUser = __classPrivateFieldGet(this, _ChannelEngine_users, "f").get(userId);
53
53
  if (oldUser) {
54
54
  const message = `ChannelEngine: User with id ${userId} already exists in channel ${this.name}`;
55
- const code = 404;
55
+ const code = 400;
56
56
  throw new pondError_1.ChannelError(message, code, this.name);
57
57
  }
58
58
  __classPrivateFieldGet(this, _ChannelEngine_users, "f").set(userId, assigns);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eleven-am/pondsocket",
3
- "version": "0.1.54",
3
+ "version": "0.1.55",
4
4
  "description": "PondSocket is a fast simple socket server",
5
5
  "keywords": [
6
6
  "socket",
@@ -58,7 +58,7 @@ class PresenceEngine {
58
58
  });
59
59
  }
60
60
  else {
61
- const code = 404;
61
+ const code = 400;
62
62
  const message = `PresenceEngine: Presence with key ${presenceKey} already exists`;
63
63
  throw new pondError_1.PresenceError(message, code, __classPrivateFieldGet(this, _PresenceEngine_channel, "f"), enums_1.PresenceEventTypes.JOIN);
64
64
  }