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 d65b6ee commit b81ce4cCopy full SHA for b81ce4c
lib/index.ts
@@ -177,6 +177,17 @@ export class Server<
177
NamespaceReservedEventsMap<ListenEvents, EmitEvents>
178
> {
179
public readonly sockets: Namespace<ListenEvents, EmitEvents>;
180
+ /**
181
+ * A reference to the underlying Engine.IO server.
182
+ *
183
+ * Example:
184
185
+ * <code>
186
+ * const clientsCount = io.engine.clientsCount;
187
+ * </code>
188
189
+ */
190
+ public engine: any;
191
192
/** @private */
193
readonly _parser: typeof parser;
@@ -195,7 +206,6 @@ export class Server<
195
206
private _serveClient: boolean;
196
207
private opts: Partial<EngineOptions>;
197
208
private eio;
198
- private engine;
199
209
private _path: string;
200
210
private clientPathRegex: RegExp;
201
211
0 commit comments