Class: EventMachine::WebSocket::Handler
- Inherits:
-
Object
- Object
- EventMachine::WebSocket::Handler
- Includes:
- Debugger
- Defined in:
- lib/em-websocket/handler.rb
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
- #handshake ⇒ Object
-
#initialize(request, response, debug = false) ⇒ Handler
constructor
A new instance of Handler.
Constructor Details
#initialize(request, response, debug = false) ⇒ Handler
Returns a new instance of Handler.
8 9 10 11 12 |
# File 'lib/em-websocket/handler.rb', line 8 def initialize(request, response, debug = false) @request = request @response = response @debug = debug end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
6 7 8 |
# File 'lib/em-websocket/handler.rb', line 6 def request @request end |
Instance Method Details
#handshake ⇒ Object
14 15 16 |
# File 'lib/em-websocket/handler.rb', line 14 def handshake # Implemented in subclass end |