$faye_rack = ::Faye::RackAdapter.new({ :mount => '/', :timeout => 25, :engine => { type: Faye::Redis, host: 'localhost', port: 6379, namespace: 'app:faye' } }) # Put this in if you use thin, rainbows or goliath as your rack server # Faye::WebSocket.load_adapter('thin') App::Application.routes do match '/faye' => $faye_rack end