README.rdoc in sinatra-cometio-0.0.3 vs README.rdoc in sinatra-cometio-0.0.4

- old
+ new

@@ -72,18 +72,29 @@ === Remove Event Listener Server Side - id = CometIO.on :chat do |data, from| + event_id = CometIO.on :chat do |data, from| puts "#{data} - from#{from}" end - CometIO.removeListener id + CometIO.removeListener event_id or CometIO.removeListener :chat # remove all chat listener + +Client Side + + var event_id = io.on("error", function(err){ + console.error("CometIO error : "err); + }); + io.removeListener(event_id); + +or + + io.removeListener("error"); // remove all error listener == Sample App chat app