struct Obsctl::OBS::Protocol::Request

Overview

obs-websocket Request message with opcode 6.

Defined in:

obsctl/obs/protocol/request.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(request_type : String, request_id : String, request_data : JSON::Any | Nil = nil) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(request_type _request_type = @request_type, request_id _request_id = @request_id, request_data _request_data = @request_data) #

[View source]
def request_data : JSON::Any | Nil #

def request_id : String #

def request_type : String #

def to_frame : String #

Serializes the request as an obs-websocket JSON frame.


[View source]