Kademlia RPC handlers and protocol logic.

Classes

Protocol

Type Definitions

HandlerResponse(err, results)

The final argument passed to any protocol handler is a callback function.

Parameters:
NameTypeDescription
errError | null

Instance of an error that prevents the handler from completing

resultsObject | Array

Output of the RPC operation to respond with