Class: Rack::WebSocket::Handler::Stub
- Defined in:
- lib/rack/websocket/handler/stub.rb
Instance Method Summary collapse
-
#call(env) ⇒ Object
Always close socket.
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 |