Sha256: 093287105d35026c50535aced78b4f6a38ac39a1c28dbd4d30428cd4fbd0c750

Contents?: true

Size: 834 Bytes

Versions: 1

Compression:

Stored size: 834 Bytes

Contents

# Jsonrpctcp

[![Build Status](https://travis-ci.org/hsanjuan/jsonrpctcp.svg)](https://travis-ci.org/hsanjuan/jsonrpctcp) [![Coverage Status](https://coveralls.io/repos/hsanjuan/jsonrpctcp/badge.svg)](https://coveralls.io/r/hsanjuan/jsonrpctcp)

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:

```ruby
gem 'jsonrpctcp'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install jsonrpctcp

## Usage

```ruby
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.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jsonrpctcp-0.2.0 README.md