amark/coalesce

Module API: Add socket disconnect event map

amark opened this issue · 0 comments

onmessage events automagically work with coalesce.

however there is nothing that allows a module to be notified when a socket gets disconnected.

please add a module API config property that allows one to map a disconnect event to a sub function of the exported module, in the same way the HTTP intercept option works.