Exception: RfcWebSocket::WebSocketError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/rfc-ws-client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text, code = 1002) ⇒ WebSocketError

Returns a new instance of WebSocketError.



14
15
16
17
# File 'lib/rfc-ws-client.rb', line 14

def initialize(text, code = 1002)
  super(text)
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



12
13
14
# File 'lib/rfc-ws-client.rb', line 12

def code
  @code
end