1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 19:42:01 +02:00

Reverse port forwarding works, but changes don't apply to new devices yet.

This commit is contained in:
Simo Kinnunen 2014-04-15 15:52:00 +09:00
parent a1fa91a356
commit f8a2eeab26
6 changed files with 97 additions and 33 deletions

View file

@ -169,6 +169,26 @@ module.exports = function ControlServiceFactory(
rotation: rotation
})
}
this.testForward = function(forward) {
var tx = TransactionService.create(target)
socket.emit('forward.test', channel, tx.channel, forward)
return tx
}
this.createForward = function(forward) {
var tx = TransactionService.create(target)
socket.emit('forward.create', channel, tx.channel, forward)
return tx
}
this.removeForward = function(forward) {
var tx = TransactionService.create(target)
socket.emit('forward.remove', channel, tx.channel, {
devicePort: forward.devicePort
})
return tx
}
}
controlService.create = function(target, channel) {