diff --git a/docs/nodes/widgets/ui-notification.md b/docs/nodes/widgets/ui-notification.md index 35c1e3cb3..db03921a1 100644 --- a/docs/nodes/widgets/ui-notification.md +++ b/docs/nodes/widgets/ui-notification.md @@ -82,3 +82,9 @@ This notification was created using a `msg.payload` of: ```html

Generated Notification

This is custom HTML injected into Node-RED

``` + +### Sending to all clients + +Notifications are, by default, constrained to send to a single user/client. In Dashboard 2.0 this constraint is defined by `msg._client`. You can read more about this [here](../../user/multi-tenancy.md#configuring-client-data). + +If you want to send a notification to _all_ connected clients, you can remove the `msg._client` value using a "change" node, configured to "Delete" the `_client` property. \ No newline at end of file diff --git a/docs/user/multi-tenancy.md b/docs/user/multi-tenancy.md index cb7b0de06..80d61ecf0 100644 --- a/docs/user/multi-tenancy.md +++ b/docs/user/multi-tenancy.md @@ -80,7 +80,7 @@ In the [Dashboard sidebar](./sidebar.md#client-data) within the Node-RED Editor, Screenshot of an example 'Client Data' tab Screenshot of an example "Client Data" tab -Client data defines information on the user/client interacting with the Dashboard. This data can be appended to every `msg` a node emits, underneath teh `msg._client` object. +Client data defines information on the user/client interacting with the Dashboard. This data can be appended to every `msg` a node emits, underneath the `msg._client` object. When "Include Client Data" is enabled, every `msg._client` will detail the `socketId` and `socketIp` of any connected users.