Update text to reflect better error descriptions.
This commit is contained in:
@@ -454,9 +454,10 @@ those require a server response.</p>
|
|||||||
|
|
||||||
<p>Returns: A
|
<p>Returns: A
|
||||||
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">
|
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">
|
||||||
Promise</a> that resolves with no arguments on success, or rejects with no arguments if the client
|
Promise</a> that resolves with no arguments on success, or rejects with an
|
||||||
is denied access to read the subject. If the <code>subject</code> argument was an Array of
|
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error">
|
||||||
subjects, returns an Array of Promises that correspond.</p>
|
Error</a> argument if the client is denied access to read the subject. If the <code>subject</code>
|
||||||
|
argument was an Array of subjects, returns an Array of Promises that correspond.</p>
|
||||||
|
|
||||||
<p>subscribe() creates a <a href="#subscription">subscription</a> on the server to a particular
|
<p>subscribe() creates a <a href="#subscription">subscription</a> on the server to a particular
|
||||||
subject. The subscription is tied to our current <a href="#instance">instance</a> but is re-created
|
subject. The subscription is tied to our current <a href="#instance">instance</a> but is re-created
|
||||||
@@ -514,10 +515,11 @@ given subject.</a>
|
|||||||
|
|
||||||
<p>Returns: A
|
<p>Returns: A
|
||||||
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">
|
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">
|
||||||
Promise</a> that resolves on success, or rejects with no arguments if the client is denied access
|
Promise</a> that resolves on success, or rejects with an
|
||||||
to write to the subject. On success, a <a href="#message">message</a> argument is passed to the
|
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error">
|
||||||
resolve callback; it differs from the original <code>message</code> argument in that it has
|
Error</a> argument if the client is denied access to write to the subject. On success, a
|
||||||
metadata added by the server.</p>
|
<a href="#message">message</a> argument is passed to the resolve callback; it differs from the
|
||||||
|
original <code>message</code> argument in that it has metadata added by the server.</p>
|
||||||
|
|
||||||
<p>Sends a <a href="#message">message</a> to the given <a href="#subject">subject</a>. The message
|
<p>Sends a <a href="#message">message</a> to the given <a href="#subject">subject</a>. The message
|
||||||
contents are serialized and sent to the server (see
|
contents are serialized and sent to the server (see
|
||||||
|
|||||||
Reference in New Issue
Block a user