module BladeRunner::Server
Constants
- WEBSOCKET_PATH
Public Instance Methods
client()
click to toggle source
# File lib/blade_runner/server.rb, line 19 def client @client ||= Faye::Client.new(websocket_url) end
start()
click to toggle source
# File lib/blade_runner/server.rb, line 10 def start Faye::WebSocket.load_adapter("thin") Rack::Server.start(app: app, Port: BR.config.port, server: "thin") end
websocket_url(path = "")
click to toggle source
# File lib/blade_runner/server.rb, line 15 def websocket_url(path = "") BR.url(WEBSOCKET_PATH + path) end
Private Instance Methods
app()
click to toggle source
# File lib/blade_runner/server.rb, line 24 def app Rack::Builder.app do run BladeRunner::RackAdapter.new end end