Class: WebSocket::Protocol::CloseEvent

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

Instance Attribute Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



48
49
50
# File 'lib/websocket/protocol.rb', line 48

def code
  @code
end

#reasonObject

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



48
49
50
# File 'lib/websocket/protocol.rb', line 48

def reason
  @reason
end