Class: OpenAI::Realtime::Transports::AsyncWebSocket::Socket Private

Inherits:
WebSocket::AsyncWebSocketTransport::Socket show all
Defined in:
lib/openai/helpers/realtime/transports/async_websocket.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Compatibility wrapper for the socket class yielded before the shared transport extraction.

Instance Method Summary collapse

Methods inherited from WebSocket::AsyncWebSocketTransport::Socket

#abort, #aborted?, #close, #closed?, #read, #write

Constructor Details

#initialize(connection, url:) ⇒ 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.



24
25
26
# File 'lib/openai/helpers/realtime/transports/async_websocket.rb', line 24

def initialize(connection, url:)
  super(connection, url: url, error_factory: ERROR_FACTORY)
end