Class: PromiseMethod

PromiseMethod


new PromiseMethod()

Constructor for a Jayson Promise Method
Source:
See:
Returns:
Type
PromiseMethod

Extends

Methods


execute(server, requestParams [, context], outerCallback)

Executes this method in the context of a server

Parameters:
Name Type Argument Description
server Server
requestParams Array | Object
context Object <optional>
Optional context object passed to methods
outerCallback function
Overrides:
Source:
Returns:
Type
Promise

getHandler()

Returns the handler function associated with this method

Inherited From:
Source:
Returns:
Type
function

setHandler(handler)

Sets the handler function associated with this method

Parameters:
Name Type Description
handler function
Inherited From:
Source: