MCPcopy Index your code
hub / github.com/nodejs/node / fireEvent

Function fireEvent

deps/undici/undici.js:14869–14872  ·  view source on GitHub ↗
(e, target, eventFactory = (type, init) => new Event(type, init), eventInitDict = {})

Source from the content-addressed store, hash-verified

14867 }
14868 __name(isClosed, "isClosed");
14869 function fireEvent(e, target, eventFactory = (type, init) => new Event(type, init), eventInitDict = {}) {
14870 const event = eventFactory(e, eventInitDict);
14871 target.dispatchEvent(event);
14872 }
14873 __name(fireEvent, "fireEvent");
14874 function websocketMessageReceived(handler, type, data) {
14875 handler.onMessage(type, data);

Callers 3

#onMessageMethod · 0.70
#onSocketCloseMethod · 0.70

Calls 1

dispatchEventMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…