Class: OpenAI::Models::Realtime::ConnectionManager

Inherits:
Object
  • Object
show all
Defined in:
sig/openai/helpers/realtime/connection_manager.rbs

Instance Method Summary collapse

Constructor Details

#initialize ⇒ ConnectionManager

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 ConnectionManager.

Parameters:

  • client: (OpenAI::Client)
  • query: (::Hash[String, String])
  • websocket_base_url: (String, nil)
  • transport: (Object)
  • request_options: (OpenAI::request_opts, nil)
  • transport_options: (::Hash[Symbol, untyped])
  • connection_class: (singleton(OpenAI::Realtime::Connection))


6
7
8
9
10
11
12
13
14
# File 'sig/openai/helpers/realtime/connection_manager.rbs', line 6

def initialize: (
  client: OpenAI::Client,
  query: ::Hash[String, String],
  websocket_base_url: String?,
  transport: untyped,
  request_options: OpenAI::request_opts?,
  transport_options: ::Hash[Symbol, untyped],
  ?connection_class: singleton(OpenAI::Realtime::Connection)
) -> void

Instance Method Details

#open {|connection| ... } ⇒ top

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.

Yields:

Yield Parameters:

Yield Returns:

  • (top)

Returns:

  • (top)


17
# File 'sig/openai/helpers/realtime/connection_manager.rbs', line 17

def open: { (OpenAI::Realtime::Connection connection) -> top } -> top