Skip to content
This repository has been archived by the owner on May 1, 2021. It is now read-only.

lucky/bertclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BERT::Client

BERT::Client is a threadsafe BERT-RPC client with support for persistent connections, ssl, and it currently exposes BERT-RPC's cast and call.

Usage

require 'bertclient'
client = BERT::Client.new(:host => 'localhost',
                          :port => 9999,
                          :ssl => true,
                          :verify_ssl => false,
                          :gzip => true,
                          :gzip_threshold => 2048)

client.call(:calc, :add, 1, 2)

You can also use blocks to create ephemeral connections:

BERT::Client.new(opts) do |client|
  client.call(:auth, :authenticate, user, password)
  client.call(:calc, :add, 1, 2)
end

About

A threadsafe Ruby BERT-RPC client with ssl support and persistent connections

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages