MCPcopy
hub / github.com/vercel/next.js / publishMessages

Function publishMessages

examples/with-mqtt-js/app/page.tsx:40–47  ·  view source on GitHub ↗
(client: any)

Source from the content-addressed store, hash-verified

38 });
39
40 const publishMessages = (client: any) => {
41 if (!client) {
42 console.log("(publishMessages) Cannot publish, mqttClient: ", client);
43 return;
44 }
45
46 client.publish("topic1", "1st message from component");
47 };
48
49 return (
50 <div>

Callers 1

HomeFunction · 0.85

Calls 1

logMethod · 0.45

Tested by

no test coverage detected