Skip to content

Commit b83f89c

Browse files
fix(typings): make sendBuffer and receiveBuffer public
See also: https://socket.io/docs/v3/client-offline-behavior/#Buffered-events
1 parent 8c08c5d commit b83f89c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/socket.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,14 @@ export class Socket extends Emitter {
3838
public connected: boolean;
3939
public disconnected: boolean;
4040

41+
public receiveBuffer: Array<ReadonlyArray<any>> = [];
42+
public sendBuffer: Array<Packet> = [];
43+
4144
private readonly nsp: string;
4245
private readonly auth: object | ((cb: (data: object) => void) => void);
4346

4447
private ids: number = 0;
4548
private acks: object = {};
46-
private receiveBuffer: Array<ReadonlyArray<any>> = [];
47-
private sendBuffer: Array<Packet> = [];
4849
private flags: Flags = {};
4950
private subs?: Array<VoidFunction>;
5051
private _anyListeners: Array<(...args: any[]) => void>;

0 commit comments

Comments
 (0)