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
`Message getMessage(String serial)` or `void getMessageAsync(Message message, Callback<Message> callback)`
837
+
</If>
832
838
833
839
Retrieves the latest version of a specific message by its serial identifier. Requires the **history**[capability](/docs/auth/capabilities).
834
840
835
841
See [updating and deleting messages: retrieving the latest version](/docs/messages/updates-deletes#get) for more information.
836
842
837
843
##### Parameters
838
844
845
+
<Iflang="javascript,nodejs">
839
846
| Parameter | Description | Type |
840
847
|-----------|-------------|------|
841
848
| serialOrMessage | Either the serial identifier string of the message to retrieve, or a [`Message`](/docs/api/realtime-sdk/messages) object containing a populated `serial` field |`string` or [`Message`](/docs/api/realtime-sdk/messages)|
842
849
843
850
##### Returns
844
851
845
852
Returns a promise which, upon success, will be fulfilled with a [`Message`](/docs/api/realtime-sdk/messages) object representing the latest version of the message. Upon failure, the promise will be rejected with an [`ErrorInfo`](/docs/api/realtime-sdk/types#error-info) object which explains the error.
853
+
</If>
854
+
855
+
<Iflang="java">
856
+
| Parameter | Description | Type |
857
+
|-----------|-------------|------|
858
+
| serial | Serial identifier string of the message to retrieve |`string`|
Publishes an update to an existing message with shallow mixin semantics. Non-null `name`, `data`, and `extras` fields in the provided message will replace the corresponding fields in the existing message, while null fields will be left unchanged. Requires the **message-update-own** or **message-update-any**[capability](/docs/auth/capabilities).
852
872
@@ -865,7 +885,13 @@ Returns a promise which, upon success, will be fulfilled with an [`UpdateDeleteR
Marks a message as deleted by publishing an update with an action of `MESSAGE_DELETE`. This does not remove the message from the server, and the full message history remains accessible. Uses shallow mixin semantics: non-null `name`, `data`, and `extras` fields in the provided message will replace the corresponding fields in the existing message, while null fields will be left unchanged. Requires the **message-delete-own** or **message-delete-any**[capability](/docs/auth/capabilities).
871
897
@@ -878,13 +904,21 @@ See [updating and deleting messages: deletes](/docs/messages/updates-deletes#del
878
904
| message | A [`Message`](/docs/api/realtime-sdk/messages) object containing a populated `serial` field |[`Message`](/docs/api/realtime-sdk/messages)|
879
905
| operation | An optional `MessageOperation` object containing metadata about the delete operation. Can include `clientId`, `description`, and `metadata` fields |`MessageOperation` (optional) |
880
906
907
+
<Iflang="javascript,nodejs">
881
908
##### Returns
882
909
883
910
Returns a promise which, upon success, will be fulfilled with an [`UpdateDeleteResult`](/docs/api/realtime-sdk/types#update-delete-result) object containing the new version of the message. Upon failure, the promise will be rejected with an [`ErrorInfo`](/docs/api/realtime-sdk/types#error-info) object which explains the error.
Appends data to an existing message. The supplied `data` field is appended to the previous message's data, while all other fields (`name`, `extras`) replace the previous values if provided. Requires the **message-update-own** or **message-update-any**[capability](/docs/auth/capabilities).
890
924
@@ -897,13 +931,21 @@ See [updating and deleting messages: appends](/docs/messages/updates-deletes#app
897
931
| message | A [`Message`](/docs/api/realtime-sdk/messages) object containing a populated `serial` field and the data to append |[`Message`](/docs/api/realtime-sdk/messages)|
898
932
| operation | An optional `MessageOperation` object containing metadata about the append operation. Can include `clientId`, `description`, and `metadata` fields |`MessageOperation` (optional) |
899
933
934
+
<Iflang="javascript,nodejs">
900
935
##### Returns
901
936
902
937
Returns a promise which, upon success, will be fulfilled with an [`UpdateDeleteResult`](/docs/api/realtime-sdk/types#update-delete-result) object containing the new version of the message. Upon failure, the promise will be rejected with an [`ErrorInfo`](/docs/api/realtime-sdk/types#error-info) object which explains the error.
Retrieves all historical versions of a specific message, ordered by version. This includes the original message and all subsequent updates or delete operations. Requires the **history**[capability](/docs/auth/capabilities).
Publishes an update to an existing message with shallow mixin semantics. Non-null `name`, `data`, and `extras` fields in the provided message will replace the corresponding fields in the existing message, while null fields will be left unchanged. Requires the **message-update-own** or **message-update-any**[capability](/docs/auth/capabilities).
493
505
@@ -507,7 +519,13 @@ Returns a promise which, upon success, will be fulfilled with an [`UpdateDeleteR
Marks a message as deleted by publishing an update with an action of `MESSAGE_DELETE`. This does not remove the message from the server, and the full message history remains accessible. Uses shallow mixin semantics: non-null `name`, `data`, and `extras` fields in the provided message will replace the corresponding fields in the existing message, while null fields will be left unchanged. Requires the **message-delete-own** or **message-delete-any**[capability](/docs/auth/capabilities).
513
531
@@ -527,7 +545,13 @@ Returns a promise which, upon success, will be fulfilled with an [`UpdateDeleteR
Appends data to an existing message. The supplied `data` field is appended to the previous message's data, while all other fields (`name`, `extras`) replace the previous values if provided. Requires the **message-update-own** or **message-update-any**[capability](/docs/auth/capabilities).
533
557
@@ -549,7 +573,13 @@ Returns a promise which, upon success, will be fulfilled with an [`UpdateDeleteR
Retrieves all historical versions of a specific message, ordered by version. This includes the original message and all subsequent updates or delete operations. Requires the **history**[capability](/docs/auth/capabilities).
0 commit comments