MCPcopy
hub / github.com/DO-SAY-GO/dn / on

Function on

src/protocol.js:156–162  ·  view source on GitHub ↗
(method, handler)

Source from the content-addressed store, hash-verified

154 }
155
156 function on(method, handler) {
157 let listeners = Handlers[method];
158 if ( ! listeners ) {
159 Handlers[method] = listeners = [];
160 }
161 listeners.push(wrap(handler));
162 }
163
164 function ons(method, handler) {
165 let listeners = Handlers[method];

Callers 3

collectFunction · 0.85
installForSessionFunction · 0.85
archiveAndIndexURLFunction · 0.85

Calls 1

wrapFunction · 0.85

Tested by

no test coverage detected