Need help with jimson?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

chriskite
125 Stars 61 Forks MIT License 124 Commits 12 Opened issues

Description

JSON-RPC 2.0 client and server for Ruby

Services available

!
?

Need anything else?

Contributors list

# 66,263
sysadmi...
Erlang
Ruby
gitlab-...
90 commits
# 399
Ruby
Erlang
Elixir
Rails
6 commits
# 53,430
Ruby
circlec...
travis-...
droplet
2 commits
# 170,873
HTML
Ruby
1 commit
# 397,293
tree-st...
Rails
HTML
Shell
1 commit

Jimson

JSON-RPC 2.0 Client and Server for Ruby

Build Status

Client: Quick Start

require 'jimson'
client = Jimson::Client.new("http://www.example.com:8999") # the URL for the JSON-RPC 2.0 server to connect to
result = client.sum(1,2) # call the 'sum' method on the RPC server and save the result '3'

Server: Quick Start

require 'jimson'

class MyHandler extend Jimson::Handler

def sum(a,b) a + b end end

server = Jimson::Server.new(MyHandler.new) server.start # serve with webrick on http://0.0.0.0:8999/

JSON Engine

Jimson uses multi_json, so you can load the JSON library of your choice in your application and Jimson will use it automatically.

For example, require the 'json' gem in your application: require 'json'

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.