Connects to an MQTT broker over WebSocket (subprotocol mqtt) and returns a live session.
Opens the WebSocket with the mqtt subprotocol, wraps it in a binary-frame packet transport,
and runs the same CONNECT/CONNACK handshake and read pump as the TCP path. The WS carries the
identical MQTT control packets as binary frames. Use this for brokers fronted by a WebSocket
listener, or set transport: 'ws' with a url on connect.
Connects to an MQTT broker over WebSocket (subprotocol
mqtt) and returns a live session.Opens the WebSocket with the
mqttsubprotocol, wraps it in a binary-frame packet transport, and runs the same CONNECT/CONNACK handshake and read pump as the TCP path. The WS carries the identical MQTT control packets as binary frames. Use this for brokers fronted by a WebSocket listener, or settransport: 'ws'with aurlon connect.