amark / coalesce

Communication framework for distributed JavaScript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Module API: Add socket disconnect event map

amark opened this issue · 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.