Closed danbim closed 10 years ago
If a gateway connects he'll send a message with the following content which will also be forwarded to the clients EventWebSocket connection:
{
"type":"gatewayConnected",
"timestamp":"2014-07-28T11:52:37.059+02:00",
"hostname":"opium.itm.uni-luebeck.de"
}
If the channel to the gateway ceases to exist the portal will generate an event accordingly:
{
"type":"gatewayDisconnected",
"timestamp":"2014-07-28T11:52:28.202+02:00",
"hostname":"opium.itm.uni-luebeck.de",
"nodeUrns":["urn:local:0x1234"]
}
This message is generated from the knowledge about the gateway that the portal learned due to the gatewayConnected
and devicesAttached
events that had been sent in the past.
Notify clients of backend events if e.g., gateways connect/disconnect to allow further insight into what's happening at the backend if something goes wrong.