Class: Rack::WebSocket::Handler::Stub

Inherits:
Base
  • Object
show all
Defined in:
lib/rack/websocket/handler/stub.rb

Instance Method Summary collapse

Methods inherited from Base

#close_websocket, #initialize, #on_close, #on_error, #on_message, #on_open, #send_data

Constructor Details

This class inherits a constructor from Rack::WebSocket::Handler::Base

Instance Method Details

#call(env) ⇒ Object

Always close socket



7
8
9
10
# File 'lib/rack/websocket/handler/stub.rb', line 7

def call(env)
  raise 'Unknown handler!'
  close_websocket
end