You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -147,9 +147,9 @@ Failure to retrieve the message history will raise an [`AblyException`](/docs/ap
147
147
148
148
[Rest `Presence` object](/docs/presence-occupancy/presence) exposes the following public method to obtain presence event history such as enter, update and leave events. These events are represented as [`PresenceMessage`](#presence-message) objects.
Metadata and/or ancillary payloads, if provided. Valid payloads include [`push`](/docs/push/publish#payload), `headers` (a map of strings to strings for arbitrary customer-supplied metadata), [`ephemeral`](/docs/pub-sub/advanced#ephemeral), and [`privileged`](/docs/platform/integrations/webhooks#skipping) objects.<br />_Type: <Iflang="java">`JSONObject`, `JSONArray`</If><Iflang="csharp">plain C# object that can be converted to JSON</If><Iflang="javascript,nodejs">`JSON Object`</If><Iflang="ruby">`Hash`, `Array`</If><Iflang="python">`Dict`, `List`</If><Iflang="swift">`Dictionary`, `Array`</If><Iflang="objc">`NSDictionary *`, `NSArray *`</If><Iflang="php">`Associative Array`, `Array`</If><Iflang="go">`String`, `[]byte`</If>_
A connection key, which can optionally be included for a REST publish as part of the [publishing on behalf of a realtime client functionality](/docs/pub-sub/advanced#publish-on-behalf).<br />_Type: `String`_
Timestamp when the message was first received by the Ably, as <Iflang="javascript,nodejs,php,python,go,java">milliseconds since the epoch</If><Iflang="ruby">a `Time` object</If>.<br />_Type: <Iflang="javascript,nodejs,php,python">`Integer`</If><Iflang="java">`Long Integer`</If><Iflang="csharp">`DateTimeOffset`</If><Iflang="ruby">`Time`</If><Iflang="objc,swift">`NSDate`</If><Iflang="go">Integer</If>_
This will typically be empty as all messages received from Ably are automatically decoded client-side using this value. However, if the message encoding cannot be processed, this attribute will contain the remaining transformations not applied to the `data` payload.<br />_Type: `String`_
316
316
317
317
<Iflang="javascript,nodejs">
318
318
319
-
### action <aid="#action" />
319
+
### action <aid="action" />
320
320
321
321
The action type of the message, one of the [`MessageAction`](/docs/api/realtime-sdk/types#message-action) enum values.<br />_Type: `int enum { MESSAGE_CREATE, MESSAGE_UPDATE, MESSAGE_DELETE, META, MESSAGE_SUMMARY }`_
322
322
323
-
### serial <aid="#serial" />
323
+
### serial <aid="serial" />
324
324
325
325
A server-assigned identifier that will be the same in all future updates of this message. It can be used to add annotations to a message. Serial will only be set if you enable annotations in [channel rules](/docs/channels#rules).<br />_Type: `String`_
326
326
327
-
### annotations <aid="#annotations" />
327
+
### annotations <aid="annotations" />
328
328
329
329
An object containing information about annotations that have been made to the object.<br />_Type: [`MessageAnnotations`](/docs/api/realtime-sdk/types#message-annotations)_
`HistoryRequestParams` is a type that encapsulates the parameters for a history queries. For example usage see [`Channel#History`](/docs/api/realtime-sdk/history#channel-history).
A `PaginatedResult` is a type that represents a page of results for all message and presence history, stats and REST presence requests. The response from a [Ably REST API paginated query](/docs/api/rest-api/#pagination) is accompanied by metadata that indicates the relative queries available to the `PaginatedResult` object.
661
661
@@ -861,15 +861,15 @@ Returns a promise. On success, the promise is fulfilled with a new `PaginatedRes
861
861
</If>
862
862
<Iflang="javascript,nodejs">
863
863
864
-
##### current <aid="#current" />
864
+
##### current <aid="current" />
865
865
866
866
`current(): Promise<PaginatedResult>`
867
867
868
868
Returns a promise. On success, the promise is fulfilled with a new `PaginatedResult` loaded with the current page of results. On failure, the promise is rejected with an [`ErrorInfo`](/docs/api/realtime-sdk/types#error-info) object that details the reason why it was rejected.
`Param` is a type encapsulating a key/value pair. This type is used frequently in method parameters allowing key/value pairs to be used more flexible, see [`Channel#history`](/docs/api/realtime-sdk/history#channel-history) for an example.
0 commit comments