Exception: OpenAI::Errors::RealtimeConnectionError

Inherits:
WebSocketConnectionError show all
Defined in:
lib/openai/helpers/realtime/errors.rb,
sig/openai/helpers/realtime/extensions.rbs

Overview

Raised when a Realtime WebSocket cannot be opened or used.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ RealtimeConnectionError

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

Parameters:

  • url: (URI::Generic)
  • message: (String, nil)
  • cause: (Exception, nil)
  • http_status: (Integer, nil)


34
35
36
37
38
39
# File 'sig/openai/helpers/realtime/extensions.rbs', line 34

def initialize: (
  url: URI::Generic,
  ?message: String?,
  ?cause: Exception?,
  ?http_status: Integer?
) -> void

Instance Attribute Details

#http_status ⇒ Integer? (readonly)

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:

  • (Integer, nil)


30
31
32
# File 'sig/openai/helpers/realtime/extensions.rbs', line 30

def http_status
  @http_status
end

#url ⇒ URI::Generic (readonly)

Returns the value of attribute url.

Returns:

  • (URI::Generic)


27
28
29
# File 'sig/openai/helpers/realtime/extensions.rbs', line 27

def url
  @url
end

Instance Method Details

#cause ⇒ Exception?

Returns:

  • (Exception, nil)


31
# File 'sig/openai/helpers/realtime/extensions.rbs', line 31

def cause: -> Exception?