MCPcopy Create free account
hub / github.com/CFBD/cfb-api / publish

Function publish

config/rabbit.js:11–14  ·  view source on GitHub ↗
(eventType, message)

Source from the content-addressed store, hash-verified

9 const channel = await connection.createChannel();
10
11 const publish = async (eventType, message) => {
12 await channel.assertExchange(eventType, 'fanout');
13 channel.publish(eventType, '', Buffer.from(JSON.stringify(message)));
14 };
15
16 return {
17 channel,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected