2021-03-08 11:56:43 +00:00
<!-- This file was generated based on handlebars templates. Do not edit directly! -->
2021-04-26 16:55:33 +00:00
# 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
2021-04-26 17:01:25 +00:00
- [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 )
2021-04-26 16:55:33 +00:00
- [Requests ](#requests )
- [Events ](#events )
2021-03-08 11:56:43 +00:00
2021-04-26 17:01:25 +00:00
## Connecting to obs-websocket
2021-04-26 16:55:33 +00:00
Here's info on how to connect to obs-websocket
2021-03-08 11:56:43 +00:00
2021-04-26 17:01:25 +00:00
### Connection steps
2021-04-26 16:55:33 +00:00
- Step 1
2021-03-08 11:56:43 +00:00
2021-04-26 17:01:25 +00:00
### Creating an authentication string
2021-04-26 16:55:33 +00:00
- Start by
2021-03-08 11:56:43 +00:00
2021-04-26 17:01:25 +00:00
## Message Types
2021-04-26 16:55:33 +00:00
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
2021-04-26 17:01:25 +00:00
### Hello
2021-04-26 16:55:33 +00:00
- Sent from: obs-websocket
- Sent to: Freshly connected websocket client
- Description:
2021-03-08 11:56:43 +00:00
2021-04-26 17:01:25 +00:00
### Identify
2021-04-26 16:55:33 +00:00
- Sent from: Freshly connected websocket client
- Sent to: obs-websocket
- Description:
2021-03-08 11:56:43 +00:00
2021-04-26 17:01:25 +00:00
### Identified
2021-04-26 16:55:33 +00:00
- Sent from: obs-websocket
- Sent to: Freshly identified client
- Description:
2021-03-08 11:56:43 +00:00
2021-04-26 17:01:25 +00:00
### Reidentify
2021-04-26 16:55:33 +00:00
- Sent from: Identified client
- Sent to: obs-websocket
- Description:
2021-03-08 11:56:43 +00:00
2021-04-26 17:01:25 +00:00
### Event
2021-04-26 16:55:33 +00:00
- Sent from: obs-websocket
- Sent to: All subscribed and identified clients
- Description:
2021-03-08 11:56:43 +00:00
2021-04-26 17:01:25 +00:00
### Request
2021-04-26 16:55:33 +00:00
- Sent from: Identified client
- Sent to: obs-websocket
- Description:
2021-03-08 11:56:43 +00:00
2021-04-26 17:01:25 +00:00
### RequestResponse
2021-04-26 16:55:33 +00:00
- Sent from: obs-websocket
- Sent to: Identified client which made the request
- Description:
2021-03-08 11:56:43 +00:00
2021-04-26 17:01:25 +00:00
### RequestBatch
2021-04-26 16:55:33 +00:00
- Sent from: Identified client
- Sent to: obs-websocket
- Description:
2021-03-08 11:56:43 +00:00
2021-04-26 17:01:25 +00:00
### RequestBatchResponse
2021-04-26 16:55:33 +00:00
- Sent from: obs-websocket
- Sent to: Identified client which made the request
- Description:
2021-03-08 11:56:43 +00:00
2021-04-26 16:55:33 +00:00
# Table of Contents
2021-03-08 11:56:43 +00:00
2021-04-26 16:55:33 +00:00
<!-- toc -->
2021-03-08 11:56:43 +00:00
2021-04-26 16:55:33 +00:00
- [Events ](#events )
- [Requests ](#requests )
2021-03-08 11:56:43 +00:00
2021-04-26 16:55:33 +00:00
<!-- tocstop -->
2021-03-08 11:56:43 +00:00
2021-04-26 16:55:33 +00:00
## Events
2021-03-08 11:56:43 +00:00
2021-04-26 16:55:33 +00:00
## Requests
2021-03-08 11:56:43 +00:00