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.


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

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.


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

def http_response
  @http_response
end

#messageObject Also known as: to_s

Returns the value of attribute message.


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

def message
  @message
end