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.
auth
1 parent 48f573f commit c150223Copy full SHA for c150223
lib/socket.ts
@@ -15,7 +15,7 @@ export interface SocketOptions {
15
/**
16
* the authentication payload sent when connecting to the Namespace
17
*/
18
- auth: object | ((cb: (data: object) => void) => void);
+ auth: { [key: string]: any } | ((cb: (data: object) => void) => void);
19
}
20
21
@@ -53,11 +53,11 @@ export class Socket<
53
public connected: boolean;
54
public disconnected: boolean;
55
56
+ public auth: { [key: string]: any } | ((cb: (data: object) => void) => void);
57
public receiveBuffer: Array<ReadonlyArray<any>> = [];
58
public sendBuffer: Array<Packet> = [];
59
60
private readonly nsp: string;
- private readonly auth: object | ((cb: (data: object) => void) => void);
61
62
private ids: number = 0;
63
private acks: object = {};
0 commit comments