Project

dipsclient

0.0
No commit activity in last 3 years
No release in over 3 years
The Ruby client for the DiPS service(Distributed Publish Subscribe).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 10.0

Runtime

 Project Readme

DiPS ruby Client

A Ruby client for the DiPS service.

##DiPS is a Distributed Publish Subscribe service written in C#, the service and the source code can be found here: http://pedro-ramirez-suarez.github.io/DiPS

Installation

Add this line to your application's Gemfile:

gem 'dipsclient'

And then execute:

$ bundle

Or install it yourself as:

$ gem install dipsclient

Usage

require 'dipsclient'

puts "Connecting"
client = DiPS::DiPSClient.new "ws://localhost:8888/dips"
puts "Subscribing"
client.Subscribe ("test") { |payload| puts "Received from DiPS: #{payload}" }
param = {"name"=>"pedro", "age" =>39}
puts "Publishing"
client.Publish "test", param
puts "Enter to exit"
k = gets.chomp

License

The gem is available as open source under the terms of the MIT License.