Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
type Event ¶
type Event struct { Type string `json:"eventType"` Intent int `json:"eventIntent"` Data json.RawMessage `json:"eventData"` }
server -> client https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.md#event-opcode-5
type Hello ¶
type Hello struct { ObsWebSocketVersion string `json:"obsWebSocketVersion"` RPCVersion int `json:"rpcVersion"` Authentication Authentication `json:"authentication"` }
server -> client https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.md#hello-opcode-0
type Identified ¶
type Identified struct {
NegotiatedRPCVersion int `json:"negotiatedRpcVersion"`
}
server -> client https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.md#identified-opcode-2
type Identify ¶
type Identify struct { RPCVersion int `json:"rpcVersion"` Authentication string `json:"authentication"` EventSubscriptions int `json:"eventSubscriptions"` }
client -> server https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.md#identify-opcode-1
type Message ¶
type Message struct { Op int `json:"op"` D json.RawMessage `json:"d"` }
func (*Message) Bytes ¶
func (o *Message) Bytes() json.RawMessage
type Opcode ¶
type Opcode interface {
// contains filtered or unexported methods
}
func GetOpcodeForOp ¶
func ParseRawMessage ¶
func ParseRawMessage(raw json.RawMessage) (Opcode, error)
type Reidentify ¶
type Reidentify struct {
EventSubscriptions int `json:"eventSubscriptions"`
}
client -> server https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.md#reidentify-opcode-3
type Request ¶
type Request struct { Type string `json:"requestType"` ID string `json:"requestId"` Data any `json:"requestData,omitempty"` }
client -> server https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.md#request-opcode-6
type RequestResponse ¶
type RequestResponse struct { Type string `json:"requestType"` ID string `json:"requestId"` Status RequestResponseStatus `json:"requestStatus"` Data json.RawMessage `json:"responseData,omitempty"` }
server -> client https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.md#requestresponse-opcode-7