Connecting to MQTT with secure websocket in Nextjs – Reactjs
I use this code to connect to my own mqtt broker with socket from Nextjs and it works fine import mqtt, { MqttClient } from "mqtt"; //... mqtt.connect("ws://IPADDRESS:1884"); //.... Now, I want to change it to secure websocket (wss) and…