From 13ff0dc5d1a047cc018a43c18496495ce14447ec Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Tue, 29 Dec 2015 15:13:58 -0800 Subject: [PATCH] Update text to reflect better error descriptions. --- reference.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/reference.html b/reference.html index c4ae52c..1bf8aab 100644 --- a/reference.html +++ b/reference.html @@ -454,9 +454,10 @@ those require a server response.

Returns: A -Promise that resolves with no arguments on success, or rejects with no arguments if the client -is denied access to read the subject. If the subject argument was an Array of -subjects, returns an Array of Promises that correspond.

+Promise that resolves with no arguments on success, or rejects with an + +Error argument if the client is denied access to read the subject. If the subject +argument was an Array of subjects, returns an Array of Promises that correspond.

subscribe() creates a subscription on the server to a particular subject. The subscription is tied to our current instance but is re-created @@ -514,10 +515,11 @@ given subject.

Returns: A -Promise that resolves on success, or rejects with no arguments if the client is denied access -to write to the subject. On success, a message argument is passed to the -resolve callback; it differs from the original message argument in that it has -metadata added by the server.

+Promise that resolves on success, or rejects with an + +Error argument if the client is denied access to write to the subject. On success, a +message argument is passed to the resolve callback; it differs from the +original message argument in that it has metadata added by the server.

Sends a message to the given subject. The message contents are serialized and sent to the server (see