disconnect message callback when disposing Connection instance
This commit is contained in:
parent
d18b910791
commit
840f589651
1 changed files with 1 additions and 0 deletions
|
|
@ -382,6 +382,7 @@ export default class Connection {
|
||||||
for (const k of this.subscribingNotes.keys()) {
|
for (const k of this.subscribingNotes.keys()) {
|
||||||
this.subscriber.off(`noteStream:${k}`, this.onNoteStreamMessage);
|
this.subscriber.off(`noteStream:${k}`, this.onNoteStreamMessage);
|
||||||
}
|
}
|
||||||
|
this.wsConnection.off('message', this.onWsConnectionMessage);
|
||||||
|
|
||||||
this.fetchIntervalId = null;
|
this.fetchIntervalId = null;
|
||||||
this.channels.clear();
|
this.channels.clear();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue