Sha256: 8bb47acb34e4f474b51ffa1c6d4f78d4afd8078c3aad4c5ec8f5ccdf2f5367be

Contents?: true

Size: 328 Bytes

Versions: 1

Compression:

Stored size: 328 Bytes

Contents

$: << File.expand_path('../../lib', __FILE__)

require 'mikka'


if ARGV.first == '1'
  ping_actor = Mikka.actor do |message|
    puts message
  end

  server = Mikka::Remote.start(:port => 1337)
  server.register('ping', ping_actor)
else
  ping_actor = Mikka::Remote.actor_for('ping', :port => 1337)
  ping_actor << 'hello'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mikka-1.1.0-java examples/remoting.rb