Replies: 1 comment 8 replies
-
My first guess would be check the port, in obs-websocket 5.0.0-beta1 the default port was changed to 4455 |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to connect to OBS Studio with
obs-websocket-js
but I can't. When I try, I get an OBS notification with a successful connection but after 2 seconds I get another notification for disconnection. I use :[email protected]
[email protected]
[email protected]
When I open the console in Chrome, I have two messages:
WebSocket connection to 'ws://127.0.0.1:4444/' failed: createConnection @ obs-websocket-js.js:2828
Uncaught (in promise) Error at OBSWebSocket.onClose (obs-websocket-js.js:3044:17)
My code (file main.js):
import OBSWebsocket from "obs-websocket-js";
const obs = new OBSWebsocket();
await obs.connect('ws://127.0.0.1:4444');
console.log('connected !!!');
Can you help me ?
Thank you !
Beta Was this translation helpful? Give feedback.
All reactions