Sha256: 6104e75c4e8fbdc15217b99b2ebd04db0df69d4913999216f26b4abf7a0c6385
Contents?: true
Size: 788 Bytes
Versions: 1
Compression:
Stored size: 788 Bytes
Contents
# BunnyRpc Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/bunny_rpc`. To experiment with that code, run `bin/console` for an interactive prompt. TODO: Delete this and the text above, and describe your gem ## Installation Add this line to your application's Gemfile: ```ruby gem 'bunny_rpc' ``` And then execute: $ bundle Or install it yourself as: $ gem install bunny_rpc ## Usage ### Client require 'bunny_rpc' client = BunnyRpc::Client.new result = client.publish('playload') ### Server require 'bunny_rpc' client = BunnyRpc::Server.new('queue1') client.subscribe do |data| puts data payload = 'get it !' client.publish(payload) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bunny_rpc-0.1.1 | README.md |