This commit is contained in:
tamaina
2021-09-06 22:12:07 +09:00
parent 3500705585
commit f4652ec4ac
8 changed files with 158 additions and 17 deletions

View File

@@ -19,7 +19,7 @@ export default class extends Channel {
this.channelId = params.channelId as string;
// Subscribe stream
this.subscriber.on('notesStream', this.onNote);
this.subscriber.on('notesStream', e => this.onNote(e));
this.subscriber.on(`channelStream:${this.channelId}`, this.onEvent);
this.emitTypersIntervalId = setInterval(this.emitTypers, 5000);
}