Sha256: ae08eb296800e9694c704c0334d8c1b0f13ae2b4fa3ae2fa2a9822ddad6ded7a

Contents?: true

Size: 442 Bytes

Versions: 9

Compression:

Stored size: 442 Bytes

Contents

$:.unshift File.expand_path '../../lib', File.dirname(__FILE__)
require 'rubygems'
require 'bundler/setup'
require 'sinatra/rocketio/linda/client'

linda = Sinatra::RocketIO::Linda::Client.new 'http://localhost:5000'
ts = linda.tuplespace["calc"]

linda.io.on :connect do
  puts "connect #{io.session}"
  ts.watch [] do |tuple|
    puts "watch #{tuple}"
  end
end

linda.io.on :disconnect do
  puts "disconnect #{io.session}"
end

linda.wait

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sinatra-rocketio-linda-0.2.0 sample/bin/cui_calc_watcher.rb
sinatra-rocketio-linda-0.1.4 sample/bin/cui_calc_watcher.rb
sinatra-rocketio-linda-0.1.3 sample/bin/cui_calc_watcher.rb
sinatra-rocketio-linda-0.1.2 sample/bin/cui_calc_watcher.rb
sinatra-rocketio-linda-0.1.1 sample/bin/cui_calc_watcher.rb
sinatra-rocketio-linda-0.1.0 sample/bin/cui_calc_watcher.rb
sinatra-rocketio-linda-0.0.9 sample/bin/cui_calc_watcher.rb
sinatra-rocketio-linda-0.0.8 sample/bin/cui_calc_watcher.rb
sinatra-rocketio-linda-0.0.7 sample/bin/cui_calc_watcher.rb