Class: WebSocket::Driver::CloseEvent

Inherits:
Struct
  • Object
show all
Defined in:
lib/websocket/driver.rb

Instance Attribute Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code


52
53
54
# File 'lib/websocket/driver.rb', line 52

def code
  @code
end

#reasonObject

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason


52
53
54
# File 'lib/websocket/driver.rb', line 52

def reason
  @reason
end