Dev

RPC Categories

RPCS

Dev.callerInfo()

Return the caller info as detected by the server.

Dev.detectAbort()

Sleep for 3 seconds and detect if the RPC was aborted.

Dev.echo(argument: Any)

A function responding with the provided argument.

Arguments:

  • argument: Any (Any)

Dev.echoIfWithin(input: BoundedNumber<10, 20>)

Echo if the input is within 10 and 20 (manual test for parameterized types)

Arguments:

Dev.echoOptionsExample(options: Object)

Call an argument with a duck typed options object

Arguments:

Dev.image()

A function returning an image.

Dev.sum(numbers: List<Number>)

Return the sum of the inputs

Arguments:

Dev.throw(msg: String)

A function throwing an error.

Arguments:

  • msg: String (String) - Error message