obs-websocket-js connecting but unable to start recording

ashchopra

New Member
I am using the code below to start recording of OBS, using the Scene 'RTR'. The connection is established and OBS also shows the connection.

However, The functionality of the RecordButton, does not work.

This Console Line :
console.log(`Connected to server ${obsWebSocketVersion} (using RPC ${negotiatedRpcVersion})`)
Shows This :
Connected to server undefined (using RPC undefined)

There are no other console messages and recording is not started by OBS.

It looks like the this line is also not triggering
obsSocket.onopen
as the concole does not show the message :
'Connected to OBS WebSocket'

Can you assist? Thanks a ton.

Best Regards

Code Follows:

<!DOCTYPE html>
<html>
 
Top