quintanar401 / kdb-wc

kdb+ web components
MIT License
59 stars 25 forks source link

Remove handle from cSubs when websocket connection is closed #2

Closed joshmyzie2 closed 8 years ago

joshmyzie2 commented 8 years ago

After a websocket subscription is added to cSubs, it is never removed. For example, after closing wsflow.html, kdb will start throwing errors because the timer is still trying to send on the old handle.

Something like this should fix it: .z.wc:@[.;cSubs;_;]

quintanar401 commented 8 years ago

Yes, thanks. Didn't test on 3.4.