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

Function setMqttClient

examples/with-mqtt-js/app/page.tsx:26–28  ·  view source on GitHub ↗
(client: MqttClient)

Source from the content-addressed store, hash-verified

24
25 const mqttClientRef = useRef<MqttClient | null>(null);
26 const setMqttClient = (client: MqttClient) => {
27 mqttClientRef.current = client;
28 };
29 useMqtt({
30 uri: process.env.NEXT_PUBLIC_MQTT_URI,
31 options: {

Callers 1

HomeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected