I’m building an IoT dashboard to show live data from certain devices and to display some metrics based on old data saved in a database.
I can’t decide between
- using a WebSocket in the browser to connect directly to the broker or
- one to connect to Phoenix and then subscribe to a certain topic in Phoenix.
I understand that the first should be faster but I’m worried about user authentication