Class: OmniAI::Google::Live::Event::Closed
- Inherits:
-
Data
- Object
- Data
- OmniAI::Google::Live::Event::Closed
- 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
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute 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
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
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}>" |