I noticed something interesting with Dashboard, might not be a bug, but I'm not sure if it is intended either. Basically I created two buttons A and B. Button A uses send(msg)
<md-button ng-click="msg.payload = 'clicked A'; send(msg)">Button A</md-button>
while button B creates a new msg:
<md-button ng-click="send({'payload':'clicked B'})">Button B</md-button>
When I click on button A from 2 different browsers (Chrome and Edge), the debug will give me the same socket ID (which I was not expecting), whereas if I click B from the 2 different browsers, it gives different socket IDs (which was expected).
Anybody understands the behavior?
Here's the flow to reproduce:
[
{
"id": "3d9a452a.0f875a",
"type": "ui_template",
"z": "7a76aa38.4d74a4",
"group": "6a4d510d.5de65",
"name": "button A",
"order": 2,
"width": "0",
"height": "0",
"format": "<md-button ng-click=\"msg.payload = 'clicked A'; send(msg)\">Button A</md-button>",
"storeOutMessages": true,
"fwdInMessages": true,
"templateScope": "local",
"x": 400,
"y": 240,
"wires": [
[
"73e44547.2b463c"
]
]
},
{
"id": "73e44547.2b463c",
"type": "debug",
"z": "7a76aa38.4d74a4",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"x": 550,
"y": 240,
"wires": []
},
{
"id": "efaf82a4.9fd4a",
"type": "ui_template",
"z": "7a76aa38.4d74a4",
"group": "6a4d510d.5de65",
"name": "button B",
"order": 2,
"width": "0",
"height": "0",
"format": "<md-button ng-click=\"send({'payload':'clicked B'})\">Button B</md-button>",
"storeOutMessages": true,
"fwdInMessages": true,
"templateScope": "local",
"x": 400,
"y": 300,
"wires": [
[
"a1991d98.fae41"
]
]
},
{
"id": "a1991d98.fae41",
"type": "debug",
"z": "7a76aa38.4d74a4",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"x": 550,
"y": 300,
"wires": []
},
{
"id": "6a4d510d.5de65",
"type": "ui_group",
"z": "",
"name": "Users",
"tab": "56715436.c2591c",
"order": 2,
"disp": true,
"width": "9",
"collapse": false
},
{
"id": "56715436.c2591c",
"type": "ui_tab",
"z": "",
"name": "Home Tab",
"icon": "dashboard",
"order": 3
}
]