Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser starts lagging when I connect to my mosquitto broker #9

Open
denisvitez opened this issue May 22, 2019 · 1 comment
Open

Browser starts lagging when I connect to my mosquitto broker #9

denisvitez opened this issue May 22, 2019 · 1 comment

Comments

@denisvitez
Copy link

When I connect to my Mosquitto broker, the whole chrome process starts to lag like crazy, and will push my i7 over 80%. If I insert an invalid broker address, it will just show an error in console and the browser will work normally. The same happens in Firefox.

I was able to reproduce with the example project and in my own project when I call this line of code. If I comment it out or insert an invalid IP or port, the browser won't lag:
Vue.use(VueMqtt, 'ws://192.168.1.33:9001', {clientId: 'WebClient-' + parseInt(Math.random() * 100000)})

@mchobbylong
Copy link

Maybe you should try using the original MQTT.js plugin, see if it still makes the browser lag :-)
If that does not happen, then it may be something wrong in this plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants