Project

jsonrpctcp

0.0
No commit activity in last 3 years
No release in over 3 years
jsonrpctcp provides a simple JSON-RPC 2.0 synchronous client. Everytime a command is sent, it will open a TCPSocket, send it and read the response.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.8
~> 10.5
~> 3.7
~> 0.14
~> 0.9
 Project Readme

Jsonrpctcp

Gem Version Build Status Coverage Status

A very simple JSON-RPC 2.0 client library using plain old TCP (TCPSocket) for the communication (no HTTP).

Installation

Add this line to your application's Gemfile:

gem 'jsonrpctcp'

And then execute:

$ bundle

Or install it yourself as:

$ gem install jsonrpctcp

Usage

require 'jsonrpctcp'

client = Jsonrpctcp::Client.new("host", 1234)
client.mymethod("arg1", "arg2")
client.myothermethod("arg1")
client[:yetonemethod, "arg"]

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/hsanjuan/jsonrpctcp.