MCPcopy
hub / github.com/transloadit/uppy / emit

Function emit

packages/@uppy/companion/src/server/emitter/redis-emitter.js:174–181  ·  view source on GitHub ↗

* Announce the occurrence of an event * * @param {string} eventName name of the event

(eventName, ...args)

Source from the content-addressed store, hash-verified

172 * @param {string} eventName name of the event
173 */
174 async function emit(eventName, ...args) {
175 await runWhenConnected(async ({ publisher }) =>
176 publisher.publish(
177 getPrefixedEventName(eventName),
178 safeStringify.default(args, replacer),
179 ),
180 )
181 }
182
183 /**
184 * Remove all listeners of an event

Callers

nothing calls this directly

Calls 2

runWhenConnectedFunction · 0.85
getPrefixedEventNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…