Class: Pakyow::Application::Actions::Realtime::Upgrader
- Inherits:
-
Object
- Object
- Pakyow::Application::Actions::Realtime::Upgrader
- Defined in:
- lib/pakyow/application/actions/realtime/upgrader.rb
Instance Method Summary collapse
Instance Method Details
#call(connection) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/pakyow/application/actions/realtime/upgrader.rb', line 12 def call(connection) if websocket?(connection) Pakyow::Realtime::WebSocket.new(connection.verifier.verify(connection.params[:id]), connection) connection.halt end rescue Support::MessageVerifier::TamperedMessage connection.status = 403 connection.halt end |