Skip to content

Commit

Permalink
fix(typings): make "engine" attribute public
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed May 6, 2021
1 parent d65b6ee commit b81ce4c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,17 @@ export class Server<
NamespaceReservedEventsMap<ListenEvents, EmitEvents>
> {
public readonly sockets: Namespace<ListenEvents, EmitEvents>;
/**
* A reference to the underlying Engine.IO server.
*
* Example:
*
* <code>
* const clientsCount = io.engine.clientsCount;
* </code>
*
*/
public engine: any;

/** @private */
readonly _parser: typeof parser;
Expand All @@ -195,7 +206,6 @@ export class Server<
private _serveClient: boolean;
private opts: Partial<EngineOptions>;
private eio;
private engine;
private _path: string;
private clientPathRegex: RegExp;

Expand Down

0 comments on commit b81ce4c

Please sign in to comment.