Class: OpenAI::Models::Live::SidebandConnection
- Inherits:
-
Object
- Object
- OpenAI::Models::Live::SidebandConnection
- Includes:
- Enumerable
- Defined in:
- sig/openai/helpers/live/websocket.rbs
Instance Attribute Summary collapse
-
#url ⇒ URI::Generic
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #abort ⇒ nil
- #close ⇒ nil
- #closed? ⇒ Boolean
- #each {|event| ... } ⇒ Object
-
#initialize ⇒ SidebandConnection
constructor
A new instance of SidebandConnection.
- #receive ⇒ OpenAI::Models::Live::connection_server_event?
- #receive_raw ⇒ String?
- #send_event ⇒ nil
- #send_raw ⇒ nil
Constructor Details
#initialize ⇒ SidebandConnection
Returns a new instance of SidebandConnection.
71 |
# File 'sig/openai/helpers/live/websocket.rbs', line 71
def initialize: (socket: top, url: URI::Generic) -> void
|
Instance Attribute Details
#url ⇒ URI::Generic (readonly)
Returns the value of attribute url.
70 71 72 |
# File 'sig/openai/helpers/live/websocket.rbs', line 70 def url @url end |
Instance Method Details
#abort ⇒ nil
84 |
# File 'sig/openai/helpers/live/websocket.rbs', line 84
def abort: -> nil
|
#close ⇒ nil
83 |
# File 'sig/openai/helpers/live/websocket.rbs', line 83
def close: (?code: Integer, ?reason: String) -> nil
|
#each ⇒ Enumerator[OpenAI::Models::Live::connection_server_event, self] #each ⇒ self
72 73 74 75 76 |
# File 'sig/openai/helpers/live/websocket.rbs', line 72
def each:
-> Enumerator[OpenAI::Models::Live::connection_server_event, self]
| {
(OpenAI::Models::Live::connection_server_event event) -> void
} -> self
|
#receive ⇒ OpenAI::Models::Live::connection_server_event?
77 |
# File 'sig/openai/helpers/live/websocket.rbs', line 77
def receive: -> OpenAI::Models::Live::connection_server_event?
|
#receive_raw ⇒ String?
78 |
# File 'sig/openai/helpers/live/websocket.rbs', line 78
def receive_raw: -> String?
|
#send_event ⇒ nil
79 80 81 |
# File 'sig/openai/helpers/live/websocket.rbs', line 79
def send_event: (
OpenAI::Models::Live::sideband_connection_client_event event
) -> nil
|
#send_raw ⇒ nil
82 |
# File 'sig/openai/helpers/live/websocket.rbs', line 82
def send_raw: (String data) -> nil
|