You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Shared Worker allowed to create ws connection. Even more - it persists between page reloads, also it's shared between tabs. Looks great!
But there are few problems.
to connect to shared worker we also have to use simplified messaging (which is ideal for MQTT)
to run MQTT in shared worker we probably need lots of efforts from MQTT.js There is old abandoned version in official repo - https://github.com/mqttjs/mqtt-worker - currently it's not usable.
In my opinion the best solution is to setup internal mqtt between window and shared worker. And then shared worker could retranslate those messages to external broker.
Also in that way we can communicate between tabs using shared worker like small internal broker inside browser.
But main problem is running mqtt js in shared worker.
The text was updated successfully, but these errors were encountered:
Currently Shared Worker allowed to create ws connection. Even more - it persists between page reloads, also it's shared between tabs. Looks great!
But there are few problems.
In my opinion the best solution is to setup internal mqtt between window and shared worker. And then shared worker could retranslate those messages to external broker.
Also in that way we can communicate between tabs using shared worker like small internal broker inside browser.
But main problem is running mqtt js in shared worker.
The text was updated successfully, but these errors were encountered: