README.rdoc in sinatra-cometio-0.0.1 vs README.rdoc in sinatra-cometio-0.0.2

- old
+ new

@@ -16,11 +16,12 @@ require 'sinatra' require 'sinatra/cometio' ## echo - CometIO.on :chat do |data| + CometIO.on :chat do |data, session| + puts "#{data['name']} : #{data['message']} <#{session}>" self.push :chat, data end client HTML @@ -38,9 +39,12 @@ consle.log(data.name+" : "+data.message); }); // client --> server io.push("chat", {name: "shokai", message: "hello"}); + + +see sample app => http://cometio-chat.herokuapp.com == REQUIREMENTS: * Ruby 1.8.7+ or 1.9.2+