Client for Skiff (Node.js implementation of the Raft algorithm).
$ npm install skiff-client
var SkiffClient = ;var node = ;
or, with options:
var options// ...;var node = ;
autoListen: start listening on bootup. defaults to
transport: transport type. Supported values:
tcp-msgpack: Msgpack over TCP (default)
tcp-nlsjson: New-line separated JSON over TCP
dbPath: database path
waitLeaderTimeout: the time to wait to become a leader. defaults to 3000 (ms).
A skiff client object implements the level-up API.
You can also extend the client with level-* plugins, including sublevel.
Other than that, you can:
Listen for nodes connecting to us.
Joins a node given its URL.
Leaves a node given its URL.