njh/ruby-mqtt

How to connect virtual hosts

Closed this issue · 2 comments

Hi! How to connect mq with virtual hosts, I sorry that I can not find the argument in the Client.rb file

MQTT::Client.connect(host: '127.0.0.1', username: 'admin', password: 'admin', vhost: 'common')

is not work!!!

njh commented

Virtual Hosts are not supported in MQTT v3.1.1 - the only official standard for MQTT.

I think they may be added in MQTT v5.

ok, Thanks @njh