diff --git a/README.md b/README.md index 1bb371b..c9af6bf 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,11 @@ See [HELP.md](https://github.com/bitfocus/companion-module-obs-studio/blob/maste ## Changelog +### v3.4.3 + +- Fix + - Module not reconnecting when OBS was reopened under specific situations on Windows + ### v3.4.2 - Fix diff --git a/companion/manifest.json b/companion/manifest.json index 8631234..c907c69 100644 --- a/companion/manifest.json +++ b/companion/manifest.json @@ -3,7 +3,7 @@ "name": "obs-studio", "shortname": "obs", "description": "Control OBS Studio using the obs-websocket plugin", - "version": "3.4.2", + "version": "3.4.3", "license": "MIT", "repository": "git+https://github.com/bitfocus/companion-module-obs-studio.git", "bugs": "https://github.com/bitfocus/companion-module-obs-studio/issues", diff --git a/index.js b/index.js index 5b02257..a4364e5 100644 --- a/index.js +++ b/index.js @@ -319,6 +319,9 @@ class OBSInstance extends InstanceBase { this.obs.once('ExitStarted', () => { this.connectionLost() }) + this.obs.on('ConnectionClosed', () => { + this.connectionLost() + }) this.obs.on('VendorEvent', (data) => { this.vendorEvent = data this.checkFeedbacks('vendorEvent') diff --git a/package.json b/package.json index 16dbff3..37ead08 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obs-studio", - "version": "3.4.2", + "version": "3.4.3", "main": "index.js", "type": "module", "scripts": { @@ -9,7 +9,7 @@ "license": "MIT", "dependencies": { "@companion-module/base": "~1.7.0", - "obs-websocket-js": "5.0.4" + "obs-websocket-js": "5.0.5" }, "repository": { "type": "git", diff --git a/yarn.lock b/yarn.lock index faa359c..7fd0700 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1613,10 +1613,10 @@ node-releases@^2.0.14: resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.14.tgz#2ffb053bceb8b2be8495ece1ab6ce600c4461b0b" integrity sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw== -obs-websocket-js@5.0.4: - version "5.0.4" - resolved "https://registry.yarnpkg.com/obs-websocket-js/-/obs-websocket-js-5.0.4.tgz#f44aca7545df0c13e836869881c42c506ca78585" - integrity sha512-6ieuC2rq/mQoEMwO2dVKv3ZqeGL6nKHuSvnd2d/CmXuK2nOfw88NInJUyvpFHNaltmkc6P5ywVZu68Q8K5xvqQ== +obs-websocket-js@5.0.5: + version "5.0.5" + resolved "https://registry.yarnpkg.com/obs-websocket-js/-/obs-websocket-js-5.0.5.tgz#4700be77eeca8b7cd2007e325d007264c5808192" + integrity sha512-mSMqLXJ4z28jgwy7Ecv8CtpYh/xdbcn524kq0n6wT3kN6xkgWU/Zc6OtiVZo+gyyylC0anjehMLEVF+CDSwccw== dependencies: "@msgpack/msgpack" "^2.7.1" crypto-js "^4.1.1"