From a4bf4a85ba9f186459370b32f5c420440903124a Mon Sep 17 00:00:00 2001 From: Bret Ambrose Date: Mon, 18 Jul 2022 03:37:14 -0700 Subject: [PATCH] Typescript updates: add subscription identifier to Subscribe packet and add array variant for subscription identifier to Publish packet (#132) --- types/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 721a30e..349b31c 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -89,7 +89,7 @@ export interface IPublishPacket extends IPacket { responseTopic?: string, correlationData?: Buffer, userProperties?: UserProperties, - subscriptionIdentifier?: number, + subscriptionIdentifier?: number | [number], contentType?: string } } @@ -133,6 +133,7 @@ export interface ISubscribePacket extends IPacket { subscriptions: ISubscription[], properties?: { reasonString?: string, + subscriptionIdentifier?: number, userProperties?: UserProperties } }