@yoda/flora~ Reply

an object that provide methods to reply data to remote method caller

Constructor

new Reply()

Methods

(static) writeCode(code)

set return code of remote method

Parameters:
Name Type Description
code number

return code

(static) writeData(data)

set return data of remote method

Parameters:
Name Type Description
data Array.<any>

reply data content

(static) end(codeopt, dataopt)

end Reply object, actually write return values to caller

Parameters:
Name Type Attributes Description
code number <optional>

return code

data Array.<any> <optional>

return data