Class: Cramp::WebsocketExtension::WebSocketHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/cramp/websocket/extension.rb

Direct Known Subclasses

Protocol10, Protocol76

Instance Method Summary (collapse)

Constructor Details

- (WebSocketHandler) initialize(env, websocket_url, body = nil)

A new instance of WebSocketHandler



30
31
32
33
34
# File 'lib/cramp/websocket/extension.rb', line 30

def initialize(env, websocket_url, body = nil)
  @env = env
  @websocket_url = websocket_url
  @body = body
end