mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Created Websockets (markdown)
parent
1b86113131
commit
a444876784
55
Websockets.md
Normal file
55
Websockets.md
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
# Websockets
|
||||
It is possible to use the [macros](Macros) system to communicate with remote OBS instances using version 5.0 of the obs-websockets plugin.
|
||||
Since version 28 of OBS the obs-websocket plugin is shipped with OBS itself so there is no need to install anything for this functionality.
|
||||
|
||||
To receive messages the [macro](Macros) condition "Websocket" can be used.
|
||||
To send messages to other OBS instances the [macro](Macros) action "Websocket" can be used.
|
||||
|
||||
## Websocket condition
|
||||
|
||||

|
||||
|
||||
This condition type will allow you to perform actions if certain messages or patterns are received from other OBS instances.
|
||||
|
||||
Simply enter the desired message into the text field (1).
|
||||
If applicable check (2) to interpret the message as pattern to match incoming messages against.
|
||||
|
||||
If a matching message was received the condition will return true for the interval the message was received in.
|
||||
|
||||
## Websocket action
|
||||
|
||||

|
||||
|
||||
This action type will allow you to send messages to other OBS instances which could then trigger [macros](Macros) on the remote OBS instance.
|
||||
|
||||
First select the connection you want to send the message to (1).
|
||||
For more details on how to configure connections have a look at the upcoming sections.
|
||||
Next enter the message you want to send in the text field at (2).
|
||||
|
||||
### Adding new connections
|
||||
|
||||
A new connection can be added to a websocket action by clicking on the "Add new connection" entry in the connection selection menu.
|
||||
|
||||

|
||||
|
||||
When selecting this entry a dialog will open in which you will have to enter the connection details:
|
||||
|
||||

|
||||
|
||||
* Unique name for this new connection (1).
|
||||
* The address to connection to (2).
|
||||
* The port to connect to on the specified address (3).
|
||||
* The password required to connect to the websocket server (4).
|
||||
* If you would like the plugin to automatically attempt to connect on OBS startup check (5).
|
||||
* If you want the plugin to automatically attempt to reconnect once the connection is lost check (6) and enter the desired time after which reconnecting should be attempted.
|
||||
* Finally you can check if the entered connection details are valid by clicking on the "Test connection" button (7).
|
||||
If the status message reports "Connected and authenticated" all is well.
|
||||
|
||||
### Modifying existing connections
|
||||
|
||||

|
||||
|
||||
To modify the connection details of an existing connection simply select it in the drop down menu of a websocket action and click the marked gear symbol.
|
||||
Next click the "Properties" entry and a dialog like described above will open in which you can modify the connection's settings.
|
||||
|
||||
The gear icon will also allow you to rename or remove existing connections.
|
||||
Loading…
Reference in New Issue
Block a user