MCPcopy Create free account
hub / github.com/socketstream/socketstream / onChangeFiltered

Function onChangeFiltered

lib/client/index.js:94–105  ·  view source on GitHub ↗
(path, event,action)

Source from the content-addressed store, hash-verified

92 guardTime = customOnChange.guardTime || 1000;
93
94 function onChangeFiltered(path, event,action) {
95 ss.log.info('✎'.green, consoleMessage[action].grey);
96 var pubs ='__ss:' + action;
97 if (customOnChange.publish) {
98 pubs = options.onChange.publish(path, event,action,pubs);
99 }
100 if (pubs) {
101 ss.publish.all(pubs);
102 }
103
104 lastRun[action].at = Date.now();
105 }
106
107 // reload the browser
108 function onChange(changedPath, event) {

Callers 1

onChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected