Exception: Rex::Proto::Http::WebSocket::ConnectionError

Inherits:
WebSocketError
  • Object
show all
Defined in:
lib/rex/proto/http/web_socket.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg: 'The WebSocket connection failed', http_response: nil) ⇒ ConnectionError

Returns a new instance of ConnectionError.



11
12
13
14
# File 'lib/rex/proto/http/web_socket.rb', line 11

def initialize(msg: 'The WebSocket connection failed', http_response: nil)
  @message = msg
  @http_response = http_response
end

Instance Attribute Details

#http_responseObject

Returns the value of attribute http_response.



16
17
18
# File 'lib/rex/proto/http/web_socket.rb', line 16

def http_response
  @http_response
end

#messageObject Also known as: to_s

Returns the value of attribute message.



16
17
18
# File 'lib/rex/proto/http/web_socket.rb', line 16

def message
  @message
end