Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6de745 commit d5cd1b5Copy full SHA for d5cd1b5
types/index.d.ts
@@ -3,7 +3,8 @@ import WritableStream = NodeJS.WritableStream
3
4
export declare type QoS = 0 | 1 | 2
5
6
-export declare type PacketCmd = 'connack' |
+export declare type PacketCmd = 'auth' |
7
+ 'connack' |
8
'connect' |
9
'disconnect' |
10
'pingreq' |
@@ -24,6 +25,17 @@ export interface IPacket {
24
25
length?: number
26
}
27
28
+export interface IAuthPacket extends IPacket {
29
+ cmd: 'auth'
30
+ reasonCode: number,
31
+ properties?: {
32
+ authenticationMethod?: string,
33
+ authenticationData?: Buffer,
34
+ reasonString?: string,
35
+ userProperties?: Object,
36
+ }
37
+}
38
+
39
export interface IConnectPacket extends IPacket {
40
cmd: 'connect'
41
clientId: string
0 commit comments