A Node-RED Plugin to extend Node-RED Dashboard 2.0 with user session data on SocketIO events
npm install @flowfuse/node-red-dashboard-2-user-addonThis repository contains a Node-RED Dashboard 2.0 plugin that enhances events emitted from Dashboard with user data. This plugin is designed to be used with FlowFuse, and utilises the req.session.user object that is made available by the FlowFuse nr-launcher project.
Dashboard 2.0 will list the FlowFuse plugin in the "Client Data" tab of the Dashboard Sidebar. If you do not see the plugin listed there, then the plugin is not installed correctly, and the msg._client.user object will not be available to you.
If you'd like to show information about the currently logged in user, you can use the following code inside a template node:
``vue