Skip to content

Commit

Permalink
fix: not reconnecting to OBS on Windows (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryce-seifert authored Feb 27, 2024
1 parent 546e952 commit 677a146
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion companion/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obs-studio",
"version": "3.4.2",
"version": "3.4.3",
"main": "index.js",
"type": "module",
"scripts": {
Expand All @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==

[email protected].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==
[email protected].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"
Expand Down

0 comments on commit 677a146

Please sign in to comment.