Sha256: 2a7df2e304b4a04deb85c8d318e13b50f6899afb554205783de445d574f90d74
Contents?: true
Size: 314 Bytes
Versions: 4
Compression:
Stored size: 314 Bytes
Contents
require 'rubygems' require 'sinatra' require 'erb' require 'rocket-js' Rocket::JS::Builder.new(File.expand_path("../public/testing", __FILE__), false).generate get '/' do erb :index end post '/trigger' do r = Rocket[params['channel']].trigger(params['event'], params['data'], params['socket_id']) p r end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rocket-js-0.0.4 | spec/js/app.rb |
rocket-js-0.0.3 | spec/js/app.rb |
rocket-js-0.0.2 | spec/js/app.rb |
rocket-js-0.0.1 | spec/js/app.rb |