nodecommons-esm-app-socket-io 0.0.10 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { CommonsStrictExpressServer, ICommonsRequestWithStrictParams } from 'nodecommons-esm-express';
|
|
1
|
+
import { ICommonsRequestWithStrictParams } from 'nodecommons-esm-express';
|
|
3
2
|
import { ICommonsExpressConfig } from 'nodecommons-esm-express';
|
|
4
3
|
import { CommonsRestApp } from 'nodecommons-esm-app-rest';
|
|
4
|
+
import { CommonsStrictHttpServer, TCommonsHttpResponse } from 'nodecommons-esm-http';
|
|
5
5
|
import { CommonsAppSocketIoServer } from '../servers/commons-app-socket-io.server.mjs';
|
|
6
|
-
export declare abstract class CommonsSocketIoApp<
|
|
6
|
+
export declare abstract class CommonsSocketIoApp<RequestT extends ICommonsRequestWithStrictParams, ResponseT extends TCommonsHttpResponse, HttpServerT extends CommonsStrictHttpServer<RequestT, ResponseT>, SocketIoServerT extends CommonsAppSocketIoServer> extends CommonsRestApp<RequestT, ResponseT, HttpServerT> {
|
|
7
7
|
private internalSocketIoServer;
|
|
8
8
|
constructor(name: string, configFile?: string, configPath?: string, // NB, a direct path, not the name of the args parameter
|
|
9
9
|
envVar?: string, argsKey?: string);
|
|
10
|
-
protected abstract buildSocketIoServer(_expressServer:
|
|
11
|
-
protected get socketIoServer():
|
|
10
|
+
protected abstract buildSocketIoServer(_expressServer: HttpServerT, _expressConfig: ICommonsExpressConfig): SocketIoServerT;
|
|
11
|
+
protected get socketIoServer(): SocketIoServerT | undefined;
|
|
12
12
|
protected init(): Promise<void>;
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commons-socket-io.app.mjs","sourceRoot":"","sources":["../../src/apps/commons-socket-io.app.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"commons-socket-io.app.mjs","sourceRoot":"","sources":["../../src/apps/commons-socket-io.app.mts"],"names":[],"mappings":"AAGA,OAAO,EAAyB,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACzF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAK1D,MAAM,OAAgB,kBAKpB,SAAQ,cAIT;IACQ,sBAAsB,CAA4B;IAE1D,YACE,IAAY,EACZ,UAAmB,EACnB,UAAmB,EAAE,wDAAwD;IAC7E,MAAe,EACf,UAAkB,aAAa;QAEhC,KAAK,CACH,IAAI,EACJ,SAAS,EACT,UAAU,EACV,UAAU,EACV,MAAM,EACN,OAAO,CACR,CAAC;IACH,CAAC;IASD,IAAc,cAAc;QAC3B,OAAO,IAAI,CAAC,sBAAsB,CAAC;IACpC,CAAC;IAEkB,KAAK,CAAC,IAAI;QAC5B,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;QAEnB,MAAM,aAAa,GAAoB,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;QACrE,IAAI,CAAC,uBAAuB,CAAC,aAAa,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;QAE5F,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC,mBAAmB,CACpD,IAAI,CAAC,UAAU,EACf,aAAa,CACd,CAAC;IACH,CAAC;CACD"}
|