Sha256: ff49297d45dcd7cc54276f59d926bc1bee15ec277765d9d6406ddd8d8be3d727
Contents?: true
Size: 577 Bytes
Versions: 3
Compression:
Stored size: 577 Bytes
Contents
# frozen_string_literal: true lib = File.expand_path("../../../lib", __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require './app' require './chat' LiteCable.config.log_level = Logger::DEBUG app = Rack::Builder.new do map '/' do run App end end if ENV['ANYCABLE'] # Turn AnyCable compatibility mode LiteCable.anycable! else require "lite_cable/server" app.map '/cable' do use LiteCable::Server::Middleware, connection_class: Chat::Connection run proc { |_| [200, { 'Content-Type' => 'text/plain' }, ['OK']] } end end run app
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
litecable-0.4.2 | examples/sinatra/config.ru |
litecable-0.4.1 | examples/sinatra/config.ru |
litecable-0.4.0 | examples/sinatra/config.ru |