Sha256: 056461cd9b2369428cd5172fe5a1e1303157e928f15110445e88bc4b0d681b52

Contents?: true

Size: 228 Bytes

Versions: 9

Compression:

Stored size: 228 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
websocket-rack-noodles-0.4.3 lib/rack/websocket/handler/stub.rb
websocket-rack-noodles-0.4.2 lib/rack/websocket/handler/stub.rb
websocket-rack-noodles-0.4.1 lib/rack/websocket/handler/stub.rb
websocket-rack-noodles-0.4.0 lib/rack/websocket/handler/stub.rb
websocket-rack-0.4.0 lib/rack/websocket/handler/stub.rb
websocket-rack-0.3.3 lib/rack/websocket/handler/stub.rb
websocket-rack-0.3.2 lib/rack/websocket/handler/stub.rb
websocket-rack-0.3.1 lib/rack/websocket/handler/stub.rb
websocket-rack-0.3.0 lib/rack/websocket/handler/stub.rb