mirror of
https://github.com/openstf/stf
synced 2025-10-04 10:19:30 +02:00
add remoteDebugUrl into database so that it is accessible from api
This commit is contained in:
parent
c9a9d3cb06
commit
232163d290
5 changed files with 60 additions and 0 deletions
|
@ -165,6 +165,12 @@ module.exports = function(options) {
|
|||
)
|
||||
})
|
||||
})
|
||||
.on(wire.ConnectStartedMessage, function(channel, message, data) {
|
||||
dbapi.setDeviceConnectUrl(message.serial, message.url)
|
||||
})
|
||||
.on(wire.ConnectStoppedMessage, function(channel, message, data) {
|
||||
dbapi.unsetDeviceConnectUrl(message.serial)
|
||||
})
|
||||
.on(wire.JoinGroupMessage, function(channel, message, data) {
|
||||
dbapi.setDeviceOwner(message.serial, message.owner)
|
||||
appDealer.send([channel, data])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue