Class: OmniAI::Google::Live::Event::Closed

Inherits:
Data
  • Object
show all
Defined in:
lib/omniai/google/live/event.rb

Overview

The session ended. code is nil when the connection dropped without a close frame; error is set when it ended because of an exception (socket error, write timeout, or a raising handler). Google's close reason can echo request content, so inspect leaves it out.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#code ⇒ Object (readonly)

Returns the value of attribute code

Returns:

  • (Object) —

    the current value of code



43
44
45
# File 'lib/omniai/google/live/event.rb', line 43

def code
  @code
end

#error ⇒ Object (readonly)

Returns the value of attribute error

Returns:

  • (Object) —

    the current value of error



43
44
45
# File 'lib/omniai/google/live/event.rb', line 43

def error
  @error
end

#reason ⇒ Object (readonly)

Returns the value of attribute reason

Returns:

  • (Object) —

    the current value of reason



43
44
45
# File 'lib/omniai/google/live/event.rb', line 43

def reason
  @reason
end

Instance Method Details

#inspect ⇒ Object



44
# File 'lib/omniai/google/live/event.rb', line 44

def inspect = "#<#{self.class.name} code=#{code.inspect} error=#{error&.class.inspect}>"