From 5b9dc202b712ad3633f2ec9ee82ee5bdeb7f62d2 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Thu, 12 Jun 2014 21:18:04 -0700 Subject: [PATCH] Document batch subscribe behavior. --- reference.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reference.html b/reference.html index 3ebd39a..57c71aa 100644 --- a/reference.html +++ b/reference.html @@ -425,7 +425,7 @@ require a server response.

Arguments:

  1. subject: A valid subject (string, number or object with - specific keys)
  2. + specific keys), or an Array of subjects
  3. messages (optional): An integer number of historical messages to retrieve from this subject if available. 0 means no messages; -1 means all messages.
  4. lastID (optional): The id field from the last message received by the client. @@ -435,7 +435,8 @@ 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.

    +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