1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-08 23:30:53 +00:00
* Experiment Changed: This release just changes the parameters of the MQTT pubsub experiment, but otherwise has no changes.
This commit is contained in:
SirStendec 2023-10-30 14:01:28 -04:00
parent f1be0ea60c
commit 0460c02994
8 changed files with 20 additions and 13 deletions

View file

@ -33,7 +33,7 @@ export default class Room {
this.manager.room_ids[id] = this;
if ( id && this.manager.pubsub )
this.manager.pubsub.subscribe(this, `twitch/${id}/chat`);
this.manager.pubsub.subscribe(this, `twitch/${id}`);
this.manager.emit(':room-add', this);
this.load_data();
@ -85,7 +85,7 @@ export default class Room {
}
if ( this._id && this.manager.pubsub )
this.manager.pubsub.unsubscribe(this, `twitch/${this._id}/chat`);
this.manager.pubsub.unsubscribe(this, `twitch/${this._id}`);
if ( this.manager.room_ids[this._id] === this )
this.manager.room_ids[this._id] = null;