Closed xaviervia closed 11 years ago
The idea is to have only one argument rather than the three currenctly used for the callbacks.
JSTPMessage.
JSTPMessage will contain:
engine
answer
dispatch
params
The JSTPMessage could of course contain a lot more stuff, but this suffices for 0.5
Moved to https://github.com/jstp/jstp-engine/issues/4
The idea is to have only one argument rather than the three currenctly used for the callbacks.
JSTPMessage.
JSTPMessage will contain:
engine
: The JSTPEngineanswer
: if this is an ANSWER Dispatch, the Dispatch. Otherwise, null (or undefined)dispatch
: if this is a regular dispatch, the Dispatch. Otherwise, null (or undefined)params
: the named params identified by matching a Named Endpoint Resource Pattern with the incoming Dispatch. Empty if noneThe JSTPMessage could of course contain a lot more stuff, but this suffices for 0.5