Restart playlet from web app

This commit is contained in:
Brahim Hadriche committed 2023-12-18 08:53:49 -05:00
1 parent 72f547cc22
commit 4c90cf1e98
2 files changed
+17 -2

No files matched your search

@@ -8,6 +8,15 @@ export class ExternalControlProtocol {
body: '',
})
}
static async restartApp(appId) {
console.log("Restarting app", appId)
return fetch(`http://${getIp()}:8060/launch/${appId}?restart=true`, {
method: 'POST',
body: '',
})
}
static async pressKey(key) {
return fetch(`http://${getIp()}:8060/keypress/${key}`, {
method: 'POST',