disconnect message callback when disposing Connection instance

This commit is contained in:
Hazelnoot 2025-08-15 23:32:09 -04:00
parent d18b910791
commit 840f589651

View file

@ -382,6 +382,7 @@ export default class Connection {
for (const k of this.subscribingNotes.keys()) {
this.subscriber.off(`noteStream:${k}`, this.onNoteStreamMessage);
}
this.wsConnection.off('message', this.onWsConnectionMessage);
this.fetchIntervalId = null;
this.channels.clear();