Skip to content

Commit a4bf4a8

Browse files
authored
Typescript updates: add subscription identifier to Subscribe packet and add array variant for subscription identifier to Publish packet (#132)
1 parent 7f7c2ed commit a4bf4a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

types/index.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export interface IPublishPacket extends IPacket {
8989
responseTopic?: string,
9090
correlationData?: Buffer,
9191
userProperties?: UserProperties,
92-
subscriptionIdentifier?: number,
92+
subscriptionIdentifier?: number | [number],
9393
contentType?: string
9494
}
9595
}
@@ -133,6 +133,7 @@ export interface ISubscribePacket extends IPacket {
133133
subscriptions: ISubscription[],
134134
properties?: {
135135
reasonString?: string,
136+
subscriptionIdentifier?: number,
136137
userProperties?: UserProperties
137138
}
138139
}

0 commit comments

Comments
 (0)