Sha256: 5b9dde69a793b37c05f66de85c5abc6a8684e7eab72c2c9954b27c263aa1d5f2
Contents?: true
Size: 472 Bytes
Versions: 3
Compression:
Stored size: 472 Bytes
Contents
$:.push(File.join(File.dirname(__FILE__), "..", "..", "lib")) require "marilyn-rpc" require "rubygems" require "eventmachine" class EventsService < MarilynRPC::Service register :events after_connect :connected after_disconnect :disconnected def connected puts "client connected" end def notify(msg) puts msg end def disconnected puts "client disconnected" end end EM.run { EM.start_server "localhost", 8483, MarilynRPC::Server }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
marilyn-rpc-0.0.4 | examples/callbacks/server.rb |
marilyn-rpc-0.0.3 | examples/callbacks/server.rb |
marilyn-rpc-0.0.2 | examples/callbacks/server.rb |