OBS Websocket Kicking connection

Hantomei

New Member
I'm trying to send a JSON string from Warudo to OBS, but whenever I do, the connection is terminated and I get this error message:

14:34:11.855: [obs-websocket] [WebSocketServer::onClose] WebSocket client `[::ffff:127.0.0.1]:63054` has disconnected with code `4006` and reason: Your request is missing an `op`.

The Json String I am trying to send:
{"requestType":"SetSceneItemEnabled","requestData":{"sceneName":"Game Output","sceneItemId":108,"sceneItemEnabled":true}}
 

yukon92

Member
Old post, stumbled on it looking for something else. For this or someone else with similar, try adding this to your statement.
"op":6
 

yukon92

Member
To elaborate, this should work with the op portion being added, operation 6 for this type of request.
{"requestType":"SetSceneItemEnabled","requestData":{"sceneName":"Game Output","sceneItemId":1,"sceneItemEnabled":true,"op":"6"}}

I tested it with this too in Advanced Scene Switcher
{"d":{"requestData":{"op":"6","sceneItemEnabled":true,"sceneItemId":1,"sceneName":"Game Output"},"requestId":"1","requestType":"SetSceneItemEnabled"},"op": 6}
 
Top