Class: EventMachine::WebSocket::Handler

Inherits:
Object
  • Object
show all
Includes:
Debugger
Defined in:
lib/em-websocket/handler.rb

Direct Known Subclasses

Handler75, Handler76

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#requestObject (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

#handshakeObject



14
15
16
# File 'lib/em-websocket/handler.rb', line 14

def handshake
  # Implemented in subclass
end