relayx-js 1.0.2 → 1.0.3

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": "relayx-js",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "main": "realtime/realtime.js",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -566,7 +566,8 @@ export class Realtime {
566
566
 
567
567
  this.#log(`${streamName} created`);
568
568
  }else{
569
- stream.config.subjects = [...this.#getStreamTopicList(), ...this.#getPresenceTopics()];
569
+ var subs = [...stream.config.subjects, ...this.#getStreamTopicList(), ...this.#getPresenceTopics()];
570
+ stream.config.subjects = [...new Set(subs)];
570
571
  await this.#jsManager.streams.update(streamName, stream.config);
571
572
 
572
573
  this.#log(`${streamName} exists, updating and moving on...`);