Class: OpenAI::Models::Realtime::Transports::AsyncWebSocket::Socket
- Inherits:
-
Object
- Object
- OpenAI::Models::Realtime::Transports::AsyncWebSocket::Socket
- Defined in:
- sig/openai/helpers/realtime/transports/async_websocket.rbs
Instance Method Summary collapse
- #abort ⇒ void private
- #aborted? ⇒ Boolean private
- #close ⇒ void
- #closed? ⇒ Boolean
-
#initialize ⇒ Socket
constructor
private
A new instance of Socket.
- #read ⇒ Object
- #write ⇒ void
Constructor Details
#initialize ⇒ Socket
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Socket.
12 |
# File 'sig/openai/helpers/realtime/transports/async_websocket.rbs', line 12
def initialize: (untyped connection, url: URI::Generic) -> void
|
Instance Method Details
#abort ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
18 |
# File 'sig/openai/helpers/realtime/transports/async_websocket.rbs', line 18
def abort: -> void
|
#aborted? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21 |
# File 'sig/openai/helpers/realtime/transports/async_websocket.rbs', line 21
def aborted?: -> bool
|
#close ⇒ void
This method returns an undefined value.
15 |
# File 'sig/openai/helpers/realtime/transports/async_websocket.rbs', line 15
def close: (?code: Integer, ?reason: String) -> void
|
#closed? ⇒ Boolean
22 |
# File 'sig/openai/helpers/realtime/transports/async_websocket.rbs', line 22
def closed?: -> bool
|
#read ⇒ Object
13 |
# File 'sig/openai/helpers/realtime/transports/async_websocket.rbs', line 13
def read: -> untyped
|
#write ⇒ void
This method returns an undefined value.
14 |
# File 'sig/openai/helpers/realtime/transports/async_websocket.rbs', line 14
def write: (String message) -> void
|