From b8cc23940870cd2a78f629624fc8256a373f12d5 Mon Sep 17 00:00:00 2001
From: Ian Gulliver
Arguments: +
subject: A valid subject (string, number or object with
+ specific keys)Returns: An ordered (oldest to newest) array of message objects.
+ +The client library keeps a cache of messages received from +subscriptions. getMessage() returns the contents of that cache.
+ +Note that only subjects for which subscribe() has been called are valid +to pass to getMessage(), and that getMessage() only returns historical messages as specified by the +arguments to subscribe(). To fetch more historical messages, call subscribe() again with different +arguments.
+ + +Arguments: +
subject: A valid subject (string, number or object with
+ specific keys)Returns: The most recent message object received, or null if none.
+ +Similar to getMessages(), but only returns the most recent message +received from the server (in server sequence number ordering). This is useful for applications +using Cosmopolite as a key/value store that don't need to interact with the historical messages. +
+