API Docs for:
Show:

Rpc Class

Defined in: src/rpc.js:1

Constructor

Rpc

()

Defined in src/rpc.js:1

Methods

_makeDefaultSerialize

(
  • nargs
)
static

Defined in src/rpc.js:65

Creates a default serialization function for an RPC definition when no args function is supplied. The resultant function simply calls desc.any(i, 16) the appropriate number of times. This means that by default, RPC arguments have 16 bit precision.

Parameters:

  • nargs Number

    The number of arguments to serialize

Returns:

The serialize function

_populateIndexes

(
  • obj
)
private

Defined in src/rpc.js:48

Populate obj with keys corresponding to the names of the argument in the nth position of the original function and values from the indexed values in obj

Parameters:

  • obj Object

    The target object containing indexed values

_populateKeys

(
  • obj
)
private

Defined in src/rpc.js:33

Populate obj with keys corresponding to the names of the argument in the nth position of the original function and values from the indexed values in obj

Parameters:

  • obj Object

    The target object containing indexed values