mirror of
https://github.com/openstf/stf
synced 2025-10-06 03:50:04 +02:00
Better device present/absent handling by separating it from the status event.
This commit is contained in:
parent
f432dc9fb9
commit
2086d7d439
9 changed files with 147 additions and 39 deletions
|
@ -178,6 +178,15 @@ module.exports = function(options) {
|
|||
.on(wire.LeaveGroupMessage, function(channel, message) {
|
||||
socket.emit('group.leave', message)
|
||||
})
|
||||
.on(wire.DevicePresentMessage, function(channel, message) {
|
||||
socket.emit('device.present', message)
|
||||
})
|
||||
.on(wire.DeviceAbsentMessage, function(channel, message) {
|
||||
socket.emit('device.absent', message)
|
||||
})
|
||||
.on(wire.DeviceStatusMessage, function(channel, message) {
|
||||
socket.emit('device.status', message)
|
||||
})
|
||||
.handler()
|
||||
|
||||
// Global messages
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue