From 91c0fdd320cf31bf280e9730db361c20646acacd Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Tue, 12 Mar 2024 20:33:19 +0100 Subject: [PATCH] Updated Websockets (markdown) --- Websockets.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Websockets.md b/Websockets.md index ade1d96..e84406b 100644 --- a/Websockets.md +++ b/Websockets.md @@ -118,4 +118,12 @@ An example event emitted by the Advanced Scene Switcher containing the message " }, "op": 5 } -``` \ No newline at end of file +``` + +## Sending OBS websocket messages (not specific to the advanced scene switcher) + +You will have to construct the message body in accordance with the [OBS websocket protocol](https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.md#message-types-opcodes). +So you your message must at least include an `op` and `d` field and in most cases also the `requestId`. +Here is an example who to send the websocket message to start a recording: + +![image](https://github.com/WarmUpTill/SceneSwitcher/assets/19472752/bb1cc3ae-04b7-4c9d-afbb-b5860919602b)