MCPcopy Index your code
hub / github.com/MagicMirrorOrg/MagicMirror / broadcastEvents

Function broadcastEvents

defaultmodules/calendar/node_helper.js:92–100  ·  view source on GitHub ↗

* * @param {object} fetcher the fetcher associated with the calendar * @param {string} identifier the identifier of the calendar

(fetcher, identifier)

Source from the content-addressed store, hash-verified

90 * @param {string} identifier the identifier of the calendar
91 */
92 broadcastEvents (fetcher, identifier) {
93 const checksum = zlib.crc32(Buffer.from(JSON.stringify(fetcher.events), "utf8"));
94 this.sendSocketNotification("CALENDAR_EVENTS", {
95 id: identifier,
96 url: fetcher.url,
97 events: fetcher.events,
98 checksum: checksum
99 });
100 }
101});

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected