the registration Result that resolves when the handler has been registered, returning a Registration which can be used to unregister the handler.
Otherwise, the Result will fail with an error. Common reasons for failure include:
REGISTER_HANDLER
permission to
register a request handler on the server;
VIEW_SESSION
permission to access
the client's session properties.
null
or undefined
the request stream that was removed from the path. If
the path does not have a request stream assigned (or the
path does not exist), undefined
will be returned instead.
A Result that resolves with the response when a response has been received by the session if the task completes successfully.
Otherwise, the Result will fail with an Error. Common reasons for failure include:
Responder.reject(message)
;
SEND_TO_SESSION
permission;
null
or undefined
a Result that resolves when the server has dispatched all the requests.
If the server successfully evaluated the filter, the result of
this contains the number of sessions the request was sent to.
Failure to send a request to a particular matching session is
reported to the callback
.
Otherwise, the Result will fail with an Error. Common reasons for failure include:
filter
parameter could not be parsed;
SEND_TO_SESSION
and
VIEW_SESSION
permissions;
null
or undefined
undefined
if the request stream is the first stream
to be set to the path, otherwise this method will
return the previously set request stream.