Skip to content

Commit 73f5ea5

Browse files
committed
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

+4
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)