@folklore/socket 0.4.23 → 0.4.24

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/dist/cjs.js CHANGED
@@ -21,6 +21,7 @@ class PubNubSocket extends EventEmitter {
21
21
  publishKey: null,
22
22
  subscribeKey: null,
23
23
  secretKey: null,
24
+ withPresence: false,
24
25
  ...opts
25
26
  };
26
27
  this.onReady = this.onReady.bind(this);
@@ -144,13 +145,15 @@ class PubNubSocket extends EventEmitter {
144
145
  return;
145
146
  }
146
147
  const {
147
- subscriptionOptions
148
+ subscriptionOptions,
149
+ withPresence
148
150
  } = this.options;
149
151
  this.shouldStart = false;
150
152
  this.starting = true;
151
153
  this.pubnub.subscribe({
152
154
  channels: this.channels,
153
- subscriptionOptions
155
+ subscriptionOptions,
156
+ withPresence
154
157
  });
155
158
  this.emit('start');
156
159
  }
package/dist/es.js CHANGED
@@ -17,6 +17,7 @@ class PubNubSocket extends EventEmitter {
17
17
  publishKey: null,
18
18
  subscribeKey: null,
19
19
  secretKey: null,
20
+ withPresence: false,
20
21
  ...opts
21
22
  };
22
23
  this.onReady = this.onReady.bind(this);
@@ -140,13 +141,15 @@ class PubNubSocket extends EventEmitter {
140
141
  return;
141
142
  }
142
143
  const {
143
- subscriptionOptions
144
+ subscriptionOptions,
145
+ withPresence
144
146
  } = this.options;
145
147
  this.shouldStart = false;
146
148
  this.starting = true;
147
149
  this.pubnub.subscribe({
148
150
  channels: this.channels,
149
- subscriptionOptions
151
+ subscriptionOptions,
152
+ withPresence
150
153
  });
151
154
  this.emit('start');
152
155
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@folklore/socket",
3
- "version": "0.4.23",
3
+ "version": "0.4.24",
4
4
  "description": "Socket utilities",
5
5
  "keywords": [
6
6
  "javascript",
@@ -56,5 +56,5 @@
56
56
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
57
57
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
58
58
  },
59
- "gitHead": "a8ca3ca90808f72aa405901ddf919126c2bec602"
59
+ "gitHead": "b6a18894ee220306fc027de04e02e08f1f60b1ba"
60
60
  }