You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Saved on my local machine and added via Browser Source in OBS using the "Local File" switch, gives me this sequence coming through the logs:
Connecting to streamer bot
Streamerbot error, make sure the server is running.
TypeError: TypeError: Cannot read properties of undefined (reading 'digest')
Streamerbot Disconnected
If I open this web page in a browser (using Firefox latest), everything connects fine, and I instead get:
Connecting to streamer bot
Streamerbot connected.
I would expect this to work the same when opened in a browser as when run as a local file in OBS.
I have previously written widgets that are run as local files in OBS that use javascript web sockets to connect to streamer bot without using the client, and those have connected successfully. I had hoped to use the streamerbot client to streamline this, but at the moment, this does not work.
The text was updated successfully, but these errors were encountered:
This seems to be an issue with the Web Crypto API not being made fully available in OBS Studio's embedded Chrome, specifically when referencing a file directly via HTML.
For now, if you remove the password option from the client config, your code should work fine, as the error only occurs during authentication.
I will look into alternatives but I'm not sure that I'm so keen to add a full JavaScript hashing implementation as a dependency for this edge case, in lieu of sticking with SubtleCrypto 🤔
Current workarounds:
Connect without authentication
The Streamer.bot WebSocket Server can still have auth enabled, but with the Enable for all Requests box unchecked, and anything you need should still be available, even if connecting without a password.
Host the file and access it via a URL
Fairly trivial to do nowadays via GitHub, Cloudflare, etc.
Using the following code to connect to my streamerbot client:
test.js:
in a web page consisting of:
Saved on my local machine and added via Browser Source in OBS using the "Local File" switch, gives me this sequence coming through the logs:
If I open this web page in a browser (using Firefox latest), everything connects fine, and I instead get:
I would expect this to work the same when opened in a browser as when run as a local file in OBS.
I have previously written widgets that are run as local files in OBS that use javascript web sockets to connect to streamer bot without using the client, and those have connected successfully. I had hoped to use the streamerbot client to streamline this, but at the moment, this does not work.
The text was updated successfully, but these errors were encountered: