Skip to content
This repository
Newer
Older
100644 22 lines (16 sloc) 0.598 kb
dceb35df »
2009-06-06 Initial commit, blank Hoe project.
1 require 'rubygems'
0c5b5681 »
2011-04-20 Move off of Hoe and onto Bundler, and document the build process.
2 require './lib/faye'
dceb35df »
2009-06-06 Initial commit, blank Hoe project.
3
35e6d75c »
2011-08-30 Set up example servers to run in HTTPS mode.
4 task :example, :port, :ssl do |t, args|
5 exec "ruby examples/ruby/server.rb #{args[:port]} #{args[:ssl] && 'ssl'}"
893b4bb6 »
2011-03-17 Working Redis-backed engine for Ruby. Still needs some re-organisatio…
6 end
617158d3 »
2011-03-16 Make sure IDs are always a consistent length (makes it easier to use …
7
8 task :handshake, :port, :n, :c do |t, args|
9 require 'cgi'
10 require 'json'
11
12 message = {:channel => '/meta/handshake',
13 :version => '1.0',
14 :supportedConnectionTypes => ['long-polling']}
15
16 message = CGI.escape(JSON.dump message)
17 url = "http://127.0.0.1:#{args[:port]}/bayeux?jsonp=callback&message=#{message}"
18 puts "Request URL:\n#{url}\n\n"
19
d71eff58 »
2011-07-09 Various documentation and example improvements, including use of prod…
20 exec "ab -n #{args[:n]} -c #{args[:c]} '#{url}'"
617158d3 »
2011-03-16 Make sure IDs are always a consistent length (makes it easier to use …
21 end
Something went wrong with that request. Please try again.