Sha256: f6a8a105a0621562f25a567c53a88759686f8f9fc99b2aa790179aa7f02dc218

Contents?: true

Size: 426 Bytes

Versions: 35

Compression:

Stored size: 426 Bytes

Contents

begin
  require 'puma'
  RUNNING_SERVER = 'puma'
rescue LoadError => e
  begin
    require 'thin'
    RUNNING_SERVER = 'thin'
  rescue LoadError => e
    Volt.logger.error('Unable to find a compatible rack server, please make sure your Gemfile includes one of the following: thin or puma')
  end
end

module Volt
  class RackServerAdaptor
    def self.load
      Faye::WebSocket.load_adapter(RUNNING_SERVER)
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
volt-0.9.7.pre8 lib/volt/server/websocket/rack_server_adaptor.rb
volt-0.9.7.pre7 lib/volt/server/websocket/rack_server_adaptor.rb
volt-0.9.7.pre6 lib/volt/server/websocket/rack_server_adaptor.rb
volt-0.9.7.pre5 lib/volt/server/websocket/rack_server_adaptor.rb
volt-0.9.7.pre3 lib/volt/server/websocket/rack_server_adaptor.rb
volt-0.9.7.pre2 lib/volt/server/websocket/rack_server_adaptor.rb
volt-0.9.6 lib/volt/server/websocket/rack_server_adaptor.rb
volt-0.9.6.pre3 lib/volt/server/websocket/rack_server_adaptor.rb
volt-0.9.6.pre2 lib/volt/server/websocket/rack_server_adaptor.rb
volt-0.9.6.pre1 lib/volt/server/websocket/rack_server_adaptor.rb
volt-0.9.5 lib/volt/server/websocket/rack_server_adaptor.rb
volt-0.9.5.pre12 lib/volt/server/websocket/rack_server_adaptor.rb
volt-0.9.5.pre11 lib/volt/server/websocket/rack_server_adaptor.rb
volt-0.9.5.pre9 lib/volt/server/websocket/rack_server_adaptor.rb
volt-0.9.5.pre8 lib/volt/server/websocket/rack_server_adaptor.rb
volt-0.9.5.pre7 lib/volt/server/websocket/rack_server_adaptor.rb
volt-0.9.5.pre6 lib/volt/server/websocket/rack_server_adaptor.rb
volt-0.9.5.pre5 lib/volt/server/websocket/rack_server_adaptor.rb
volt-0.9.5.pre4 lib/volt/server/websocket/rack_server_adaptor.rb
volt-0.9.5.pre3 lib/volt/server/websocket/rack_server_adaptor.rb