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 ⇒ Object

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.



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

def initialize: (

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?