Websockets
Configure WebSocket Listeners for VerneMQ.
Last updated
Was this helpful?
Configure WebSocket Listeners for VerneMQ.
Last updated
Was this helpful?
VerneMQ supports the WebSocket protocol out of the box. To be able to open a WebSocket connection to VerneMQ, you have to configure a WebSocket listener or Secure WebSocket listener in the vernemq.conf
file first:
Keep in mind that you'll use MQTT-over-WebSocket, so you will need a Javascript library that implements the MQTT client behaviour. We have used the as well as
You won't be able to open WebSocket connections on a base URL, always add the /mqtt
path.