Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
63 lines (36 sloc) 1.03 KB


By Tom Preston-Werner (

WARNING: This software is alpha and should not be used in production without extensive testing. You should not consider this project production ready until it is released as 1.0.


BERTRPC is a Ruby BERT-RPC client library.


From GemCutter:

gem install bertrpc

From GitHub:

gem install mojombo-bertrpc -s \


Require the library and create a service:

require 'bertrpc'
svc ='localhost', 9999)

Make a call:, 2)
# => 3

The underlying BERT-RPC transaction of the above call is:

-> {call, calc, add, [1, 2]}
<- {reply, 3}

Make a cast:

# => nil

The underlying BERT-RPC transaction of the above cast is:

-> {cast, stats, incr, []}
<- {noreply}


Copyright (c) 2009 Tom Preston-Werner. See LICENSE for details.

Something went wrong with that request. Please try again.