Support uninstalling applications.

This commit is contained in:
Simo Kinnunen
2014-04-03 20:28:14 +09:00
parent 8584daaa71
commit 655af52659
4 changed files with 53 additions and 0 deletions

View File

@@ -135,6 +135,14 @@ module.exports = function ControlServiceFactory(
return tx
})
}
this.uninstall = function(pkg) {
var tx = TransactionService.create(target)
socket.emit('device.uninstall', channel, tx.channel, {
package: pkg
})
return tx
}
}
controlService.create = function(target, channel) {