Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 73f5ea5

Browse files
committedJan 28, 2021
Update Websocket.ts
1 parent 10513e1 commit 73f5ea5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎js-src/Websocket.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ export class Websocket {
172172
channel: channel.name,
173173
},
174174
})
175+
176+
if (this.listeners[channel.name]) {
177+
delete this.listeners[channel.name]
178+
}
175179
}
176180

177181
on(event: string, callback: Function = null): void {

0 commit comments

Comments
 (0)
Please sign in to comment.