From e6aad4226b8f18b4e2843c12c8484567203064ee Mon Sep 17 00:00:00 2001 From: Lewis Marshall Date: Sun, 6 Aug 2023 13:31:12 +0100 Subject: [PATCH] WIP: Add PresenceMessage constructor Signed-off-by: Lewis Marshall --- ably.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ably.d.ts b/ably.d.ts index 75366ad609..31aaa67958 100644 --- a/ably.d.ts +++ b/ably.d.ts @@ -3226,6 +3226,11 @@ declare namespace Types { * Static utilities related to presence messages. */ interface PresenceMessageStatic { + /** + * Construct an empty PresenceMessage. + */ + constructor(); + /** * Decodes and decrypts a deserialized `PresenceMessage`-like object using the cipher in {@link ChannelOptions}. Any residual transforms that cannot be decoded or decrypted will be in the `encoding` property. Intended for users receiving messages from a source other than a REST or Realtime channel (for example a queue) to avoid having to parse the encoding string. *