imanel/websocket-rack

View on GitHub
lib/rack/websocket/handler/stub.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Rack
  module WebSocket
    module Handler
      class Stub < Base

        # Always close socket
        def call(env)
          raise 'Unknown handler!'
          close_websocket
        end

      end
    end
  end
end