sample/cui_chat_client.rb in em-rocketio-client-0.0.3 vs sample/cui_chat_client.rb in em-rocketio-client-0.1.0
- old
+ new
@@ -9,11 +9,11 @@
EM::run do
io = EM::RocketIO::Client.new(url, :type => type).connect
# io = EM::RocketIO::Client.new('http://localhost:5000', :type => :comet).connect
- io.on :connect do |session|
- puts "#{io.type} connect!! (sessin_id:#{session})"
+ io.on :connect do
+ puts "#{io.type} connect!! (sessin_id:#{io.session})"
end
io.on :disconnect do
puts "#{io.type} disconnect"
end