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