struct

Obsctl::OBS::Protocol::Event

Inherits Struct < Value < Object

Parsed obs-websocket Event message with opcode 5.

Constructors

new(event_type : String, event_data : JSON::Any | Nil)
Source

Class methods

from_frame(frame : String) : self | Nil

Parses a raw JSON frame and returns nil when it is not an event.

Source

Instance methods

clone
Source
copy_with(event_type _event_type = @event_type, event_data _event_data = @event_data)
Source
event_data
event_type