Sha256: 8b6f0098620044a6a60f87b26451193e7bd98727b7f256c428c106bdcb05e09a

Contents?: true

Size: 269 Bytes

Versions: 4

Compression:

Stored size: 269 Bytes

Contents

require "benchmark"
require_relative "../../lib/moleculer"
Moleculer.configure do |c|
  c.log_level = :trace
end
Moleculer.start

Moleculer.wait_for_services("math")

result = Moleculer.call("math.add", a: 1, b: 2)
Moleculer.emit("echo.event", test: true)

puts result

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
moleculer-0.3.0 examples/client-server/client.rb
moleculer-0.2.0 examples/client-server/client.rb
moleculer-0.1.1 examples/client-server/client.rb
moleculer-0.1.0 examples/client-server/client.rb