diff options
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/platform.js')
| -rw-r--r-- | packages/meshbay-hub/src/meshbay_hub/static/platform.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/platform.js b/packages/meshbay-hub/src/meshbay_hub/static/platform.js index d400b4e..eeffd49 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/platform.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/platform.js @@ -224,6 +224,13 @@ export const node = { async detect() { return bridge && bridge.node ? bridge.node.detect() : { detected: false }; }, + async installed() { + return bridge && bridge.node ? bridge.node.installed() : { installed: false }; + }, + async start() { + if (!bridge || !bridge.node) throw new Error('Node bridge not available'); + return bridge.node.start(); + }, async call(method, path, body) { if (!bridge || !bridge.node) throw new Error('Node bridge not available'); return bridge.node.call(method, path, body); |