From 53a3899708d3011ec35c53d02f83e8b4de10c4d6 Mon Sep 17 00:00:00 2001 From: Robin Bolscher Date: Thu, 20 Oct 2022 10:39:23 +0200 Subject: [PATCH 1/2] Update release.yml --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fa7a47b..c4ce93b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,7 +35,7 @@ jobs: name: Build & Deploy to NPM # Only run this job if initiator is not the Homey Github Actions Bot to prevent loops - if: github.actor != 'HomeyGithubActionsBot' && github.ref == 'refs/heads/production' + if: github.actor != 'homey-bot' && github.ref == 'refs/heads/production' runs-on: ubuntu-latest steps: From f33a167f5f575ae8b41cbd197f681e0324cea427 Mon Sep 17 00:00:00 2001 From: Robin Bolscher Date: Thu, 11 Dec 2025 16:38:26 +0100 Subject: [PATCH 2/2] chore: add remote client server disconnect --- remote/client.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/remote/client.js b/remote/client.js index 5439879..3706fb5 100644 --- a/remote/client.js +++ b/remote/client.js @@ -103,6 +103,18 @@ class DeviceHandleProxy extends Duplex { static get constants() { return CONSTANTS; } + + /** + * Disconnect the remote socket.io connection. + * Call this when done using all device handles to allow the process to exit. + */ + static async disconnect() { + if (server) { + const serv = await server; + serv.disconnect(); + server = null; + } + } } DeviceHandleProxy.prototype.__init = makeRemoteFunc('create_handle');