obs-websocket/docs/generated/protocol.md

106 lines
2.4 KiB
Markdown
Raw Normal View History

2021-03-08 11:56:43 +00:00
<!-- This file was generated based on handlebars templates. Do not edit directly! -->
# obs-websocket 5.0.0 protocol reference
## General Introduction
obs-websocket provides a feature-rich RPC communication protocol, giving access to much of OBS's feature set. This document contains everything you should know in order to make a connection and use obs-websocket's functionality to the fullest.
## Table of Contents
- [Connecting to obs-websocket](#connecting-to-obs-websocket)
- [Connection steps](#connection-steps)
- [Creating an authentication string](#creating-an-authentication-string)
- [Base message types](#message-types)
- [Hello](#hello)
- [Identify](#identify)
- [Identified](#identified)
- [Reidentify](#reidentify)
- [Event](#event)
- [Request](#request)
- [RequestResponse](#requestresponse)
- [RequestBatch](#requestbatch)
- [RequestBatchResponse](#requestbatchresponse)
- [Requests](#requests)
- [Events](#events)
2021-03-08 11:56:43 +00:00
## Connecting to obs-websocket
Here's info on how to connect to obs-websocket
2021-03-08 11:56:43 +00:00
### Connection steps
- Step 1
2021-03-08 11:56:43 +00:00
### Creating an authentication string
- Start by
2021-03-08 11:56:43 +00:00
## Message Types
The following message types (`messageType`) are the base message types which may be sent to and from obs-websocket. Sending a message with a `messageType` that is not recognized to the obs-websocket server will result in your connection being closed with `WebsocketCloseCode::UnknownMessageType`.
2021-03-08 11:56:43 +00:00
### Hello
- Sent from: obs-websocket
- Sent to: Freshly connected websocket client
- Description:
2021-03-08 11:56:43 +00:00
### Identify
- Sent from: Freshly connected websocket client
- Sent to: obs-websocket
- Description:
2021-03-08 11:56:43 +00:00
### Identified
- Sent from: obs-websocket
- Sent to: Freshly identified client
- Description:
2021-03-08 11:56:43 +00:00
### Reidentify
- Sent from: Identified client
- Sent to: obs-websocket
- Description:
2021-03-08 11:56:43 +00:00
### Event
- Sent from: obs-websocket
- Sent to: All subscribed and identified clients
- Description:
2021-03-08 11:56:43 +00:00
### Request
- Sent from: Identified client
- Sent to: obs-websocket
- Description:
2021-03-08 11:56:43 +00:00
### RequestResponse
- Sent from: obs-websocket
- Sent to: Identified client which made the request
- Description:
2021-03-08 11:56:43 +00:00
### RequestBatch
- Sent from: Identified client
- Sent to: obs-websocket
- Description:
2021-03-08 11:56:43 +00:00
### RequestBatchResponse
- Sent from: obs-websocket
- Sent to: Identified client which made the request
- Description:
2021-03-08 11:56:43 +00:00
# Table of Contents
2021-03-08 11:56:43 +00:00
<!-- toc -->
2021-03-08 11:56:43 +00:00
- [Events](#events)
- [Requests](#requests)
2021-03-08 11:56:43 +00:00
<!-- tocstop -->
2021-03-08 11:56:43 +00:00
## Events
2021-03-08 11:56:43 +00:00
## Requests
2021-03-08 11:56:43 +00:00