diff --git a/TypeScript/10ScopesAndTypes/types/callbacks/GameCallbacks.d.ts b/TypeScript/10ScopesAndTypes/types/callbacks/GameCallbacks.d.ts index 30cf074..a1ce037 100644 --- a/TypeScript/10ScopesAndTypes/types/callbacks/GameCallbacks.d.ts +++ b/TypeScript/10ScopesAndTypes/types/callbacks/GameCallbacks.d.ts @@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails"; import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData"; import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; import { INullResponseData } from "../models/eft/httpResponse/INullResponseData"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { Watermark } from "../utils/Watermark"; declare class GameCallbacks { protected httpResponse: HttpResponseUtil; protected watermark: Watermark; + protected saveServer: SaveServer; protected gameController: GameController; - constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController); + constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController); /** * Handle client/game/version/validate * @returns INullResponseData @@ -30,6 +32,7 @@ declare class GameCallbacks { gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; /** * Handle client/game/logout + * Save profiles on game close * @returns IGameLogoutResponseData */ gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; diff --git a/TypeScript/10ScopesAndTypes/types/callbacks/SaveCallbacks.d.ts b/TypeScript/10ScopesAndTypes/types/callbacks/SaveCallbacks.d.ts index 93ffd96..1997f46 100644 --- a/TypeScript/10ScopesAndTypes/types/callbacks/SaveCallbacks.d.ts +++ b/TypeScript/10ScopesAndTypes/types/callbacks/SaveCallbacks.d.ts @@ -1,9 +1,13 @@ import { OnLoad } from "../di/OnLoad"; import { OnUpdate } from "../di/OnUpdate"; +import { ICoreConfig } from "../models/spt/config/ICoreConfig"; +import { ConfigServer } from "../servers/ConfigServer"; import { SaveServer } from "../servers/SaveServer"; export declare class SaveCallbacks implements OnLoad, OnUpdate { protected saveServer: SaveServer; - constructor(saveServer: SaveServer); + protected configServer: ConfigServer; + protected coreConfig: ICoreConfig; + constructor(saveServer: SaveServer, configServer: ConfigServer); onLoad(): Promise; getRoute(): string; onUpdate(secondsSinceLastRun: number): Promise; diff --git a/TypeScript/10ScopesAndTypes/types/models/spt/config/ICoreConfig.d.ts b/TypeScript/10ScopesAndTypes/types/models/spt/config/ICoreConfig.d.ts index 27903e6..c37f81f 100644 --- a/TypeScript/10ScopesAndTypes/types/models/spt/config/ICoreConfig.d.ts +++ b/TypeScript/10ScopesAndTypes/types/models/spt/config/ICoreConfig.d.ts @@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig { projectName: string; compatibleTarkovVersion: string; serverName: string; + profileSaveIntervalSeconds: number; commit: string; } diff --git a/TypeScript/10ScopesAndTypes/types/models/spt/server/ILocaleBase.d.ts b/TypeScript/10ScopesAndTypes/types/models/spt/server/ILocaleBase.d.ts index 3cdaf6f..3004cb8 100644 --- a/TypeScript/10ScopesAndTypes/types/models/spt/server/ILocaleBase.d.ts +++ b/TypeScript/10ScopesAndTypes/types/models/spt/server/ILocaleBase.d.ts @@ -2,4 +2,5 @@ export interface ILocaleBase { global: Record>; menu: Record; languages: Record; + server: Record>; } diff --git a/TypeScript/10ScopesAndTypes/types/servers/HttpServer.d.ts b/TypeScript/10ScopesAndTypes/types/servers/HttpServer.d.ts index 80c1d48..97e0705 100644 --- a/TypeScript/10ScopesAndTypes/types/servers/HttpServer.d.ts +++ b/TypeScript/10ScopesAndTypes/types/servers/HttpServer.d.ts @@ -18,9 +18,12 @@ export declare class HttpServer { protected configServer: ConfigServer; protected applicationContext: ApplicationContext; protected webSocketServer: WebSocketServer; - constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); protected httpConfig: IHttpConfig; - getCookies(req: http.IncomingMessage): any; - handleRequest(req: IncomingMessage, resp: ServerResponse): void; + constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); + /** + * Handle server loading event + */ load(): void; + protected handleRequest(req: IncomingMessage, resp: ServerResponse): void; + protected getCookies(req: http.IncomingMessage): Record; } diff --git a/TypeScript/11BundleLoadingSample/types/callbacks/GameCallbacks.d.ts b/TypeScript/11BundleLoadingSample/types/callbacks/GameCallbacks.d.ts index 30cf074..a1ce037 100644 --- a/TypeScript/11BundleLoadingSample/types/callbacks/GameCallbacks.d.ts +++ b/TypeScript/11BundleLoadingSample/types/callbacks/GameCallbacks.d.ts @@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails"; import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData"; import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; import { INullResponseData } from "../models/eft/httpResponse/INullResponseData"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { Watermark } from "../utils/Watermark"; declare class GameCallbacks { protected httpResponse: HttpResponseUtil; protected watermark: Watermark; + protected saveServer: SaveServer; protected gameController: GameController; - constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController); + constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController); /** * Handle client/game/version/validate * @returns INullResponseData @@ -30,6 +32,7 @@ declare class GameCallbacks { gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; /** * Handle client/game/logout + * Save profiles on game close * @returns IGameLogoutResponseData */ gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; diff --git a/TypeScript/11BundleLoadingSample/types/callbacks/SaveCallbacks.d.ts b/TypeScript/11BundleLoadingSample/types/callbacks/SaveCallbacks.d.ts index 93ffd96..1997f46 100644 --- a/TypeScript/11BundleLoadingSample/types/callbacks/SaveCallbacks.d.ts +++ b/TypeScript/11BundleLoadingSample/types/callbacks/SaveCallbacks.d.ts @@ -1,9 +1,13 @@ import { OnLoad } from "../di/OnLoad"; import { OnUpdate } from "../di/OnUpdate"; +import { ICoreConfig } from "../models/spt/config/ICoreConfig"; +import { ConfigServer } from "../servers/ConfigServer"; import { SaveServer } from "../servers/SaveServer"; export declare class SaveCallbacks implements OnLoad, OnUpdate { protected saveServer: SaveServer; - constructor(saveServer: SaveServer); + protected configServer: ConfigServer; + protected coreConfig: ICoreConfig; + constructor(saveServer: SaveServer, configServer: ConfigServer); onLoad(): Promise; getRoute(): string; onUpdate(secondsSinceLastRun: number): Promise; diff --git a/TypeScript/11BundleLoadingSample/types/models/spt/config/ICoreConfig.d.ts b/TypeScript/11BundleLoadingSample/types/models/spt/config/ICoreConfig.d.ts index 27903e6..c37f81f 100644 --- a/TypeScript/11BundleLoadingSample/types/models/spt/config/ICoreConfig.d.ts +++ b/TypeScript/11BundleLoadingSample/types/models/spt/config/ICoreConfig.d.ts @@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig { projectName: string; compatibleTarkovVersion: string; serverName: string; + profileSaveIntervalSeconds: number; commit: string; } diff --git a/TypeScript/11BundleLoadingSample/types/models/spt/server/ILocaleBase.d.ts b/TypeScript/11BundleLoadingSample/types/models/spt/server/ILocaleBase.d.ts index 3cdaf6f..3004cb8 100644 --- a/TypeScript/11BundleLoadingSample/types/models/spt/server/ILocaleBase.d.ts +++ b/TypeScript/11BundleLoadingSample/types/models/spt/server/ILocaleBase.d.ts @@ -2,4 +2,5 @@ export interface ILocaleBase { global: Record>; menu: Record; languages: Record; + server: Record>; } diff --git a/TypeScript/11BundleLoadingSample/types/servers/HttpServer.d.ts b/TypeScript/11BundleLoadingSample/types/servers/HttpServer.d.ts index 80c1d48..97e0705 100644 --- a/TypeScript/11BundleLoadingSample/types/servers/HttpServer.d.ts +++ b/TypeScript/11BundleLoadingSample/types/servers/HttpServer.d.ts @@ -18,9 +18,12 @@ export declare class HttpServer { protected configServer: ConfigServer; protected applicationContext: ApplicationContext; protected webSocketServer: WebSocketServer; - constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); protected httpConfig: IHttpConfig; - getCookies(req: http.IncomingMessage): any; - handleRequest(req: IncomingMessage, resp: ServerResponse): void; + constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); + /** + * Handle server loading event + */ load(): void; + protected handleRequest(req: IncomingMessage, resp: ServerResponse): void; + protected getCookies(req: http.IncomingMessage): Record; } diff --git a/TypeScript/12ClassExtensionOverride/types/callbacks/GameCallbacks.d.ts b/TypeScript/12ClassExtensionOverride/types/callbacks/GameCallbacks.d.ts index 30cf074..a1ce037 100644 --- a/TypeScript/12ClassExtensionOverride/types/callbacks/GameCallbacks.d.ts +++ b/TypeScript/12ClassExtensionOverride/types/callbacks/GameCallbacks.d.ts @@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails"; import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData"; import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; import { INullResponseData } from "../models/eft/httpResponse/INullResponseData"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { Watermark } from "../utils/Watermark"; declare class GameCallbacks { protected httpResponse: HttpResponseUtil; protected watermark: Watermark; + protected saveServer: SaveServer; protected gameController: GameController; - constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController); + constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController); /** * Handle client/game/version/validate * @returns INullResponseData @@ -30,6 +32,7 @@ declare class GameCallbacks { gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; /** * Handle client/game/logout + * Save profiles on game close * @returns IGameLogoutResponseData */ gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; diff --git a/TypeScript/12ClassExtensionOverride/types/callbacks/SaveCallbacks.d.ts b/TypeScript/12ClassExtensionOverride/types/callbacks/SaveCallbacks.d.ts index 93ffd96..1997f46 100644 --- a/TypeScript/12ClassExtensionOverride/types/callbacks/SaveCallbacks.d.ts +++ b/TypeScript/12ClassExtensionOverride/types/callbacks/SaveCallbacks.d.ts @@ -1,9 +1,13 @@ import { OnLoad } from "../di/OnLoad"; import { OnUpdate } from "../di/OnUpdate"; +import { ICoreConfig } from "../models/spt/config/ICoreConfig"; +import { ConfigServer } from "../servers/ConfigServer"; import { SaveServer } from "../servers/SaveServer"; export declare class SaveCallbacks implements OnLoad, OnUpdate { protected saveServer: SaveServer; - constructor(saveServer: SaveServer); + protected configServer: ConfigServer; + protected coreConfig: ICoreConfig; + constructor(saveServer: SaveServer, configServer: ConfigServer); onLoad(): Promise; getRoute(): string; onUpdate(secondsSinceLastRun: number): Promise; diff --git a/TypeScript/12ClassExtensionOverride/types/models/spt/config/ICoreConfig.d.ts b/TypeScript/12ClassExtensionOverride/types/models/spt/config/ICoreConfig.d.ts index 27903e6..c37f81f 100644 --- a/TypeScript/12ClassExtensionOverride/types/models/spt/config/ICoreConfig.d.ts +++ b/TypeScript/12ClassExtensionOverride/types/models/spt/config/ICoreConfig.d.ts @@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig { projectName: string; compatibleTarkovVersion: string; serverName: string; + profileSaveIntervalSeconds: number; commit: string; } diff --git a/TypeScript/12ClassExtensionOverride/types/models/spt/server/ILocaleBase.d.ts b/TypeScript/12ClassExtensionOverride/types/models/spt/server/ILocaleBase.d.ts index 3cdaf6f..3004cb8 100644 --- a/TypeScript/12ClassExtensionOverride/types/models/spt/server/ILocaleBase.d.ts +++ b/TypeScript/12ClassExtensionOverride/types/models/spt/server/ILocaleBase.d.ts @@ -2,4 +2,5 @@ export interface ILocaleBase { global: Record>; menu: Record; languages: Record; + server: Record>; } diff --git a/TypeScript/12ClassExtensionOverride/types/servers/HttpServer.d.ts b/TypeScript/12ClassExtensionOverride/types/servers/HttpServer.d.ts index 80c1d48..97e0705 100644 --- a/TypeScript/12ClassExtensionOverride/types/servers/HttpServer.d.ts +++ b/TypeScript/12ClassExtensionOverride/types/servers/HttpServer.d.ts @@ -18,9 +18,12 @@ export declare class HttpServer { protected configServer: ConfigServer; protected applicationContext: ApplicationContext; protected webSocketServer: WebSocketServer; - constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); protected httpConfig: IHttpConfig; - getCookies(req: http.IncomingMessage): any; - handleRequest(req: IncomingMessage, resp: ServerResponse): void; + constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); + /** + * Handle server loading event + */ load(): void; + protected handleRequest(req: IncomingMessage, resp: ServerResponse): void; + protected getCookies(req: http.IncomingMessage): Record; } diff --git a/TypeScript/13AddTrader/types/callbacks/GameCallbacks.d.ts b/TypeScript/13AddTrader/types/callbacks/GameCallbacks.d.ts index 30cf074..a1ce037 100644 --- a/TypeScript/13AddTrader/types/callbacks/GameCallbacks.d.ts +++ b/TypeScript/13AddTrader/types/callbacks/GameCallbacks.d.ts @@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails"; import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData"; import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; import { INullResponseData } from "../models/eft/httpResponse/INullResponseData"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { Watermark } from "../utils/Watermark"; declare class GameCallbacks { protected httpResponse: HttpResponseUtil; protected watermark: Watermark; + protected saveServer: SaveServer; protected gameController: GameController; - constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController); + constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController); /** * Handle client/game/version/validate * @returns INullResponseData @@ -30,6 +32,7 @@ declare class GameCallbacks { gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; /** * Handle client/game/logout + * Save profiles on game close * @returns IGameLogoutResponseData */ gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; diff --git a/TypeScript/13AddTrader/types/callbacks/SaveCallbacks.d.ts b/TypeScript/13AddTrader/types/callbacks/SaveCallbacks.d.ts index 93ffd96..1997f46 100644 --- a/TypeScript/13AddTrader/types/callbacks/SaveCallbacks.d.ts +++ b/TypeScript/13AddTrader/types/callbacks/SaveCallbacks.d.ts @@ -1,9 +1,13 @@ import { OnLoad } from "../di/OnLoad"; import { OnUpdate } from "../di/OnUpdate"; +import { ICoreConfig } from "../models/spt/config/ICoreConfig"; +import { ConfigServer } from "../servers/ConfigServer"; import { SaveServer } from "../servers/SaveServer"; export declare class SaveCallbacks implements OnLoad, OnUpdate { protected saveServer: SaveServer; - constructor(saveServer: SaveServer); + protected configServer: ConfigServer; + protected coreConfig: ICoreConfig; + constructor(saveServer: SaveServer, configServer: ConfigServer); onLoad(): Promise; getRoute(): string; onUpdate(secondsSinceLastRun: number): Promise; diff --git a/TypeScript/13AddTrader/types/models/spt/config/ICoreConfig.d.ts b/TypeScript/13AddTrader/types/models/spt/config/ICoreConfig.d.ts index 27903e6..c37f81f 100644 --- a/TypeScript/13AddTrader/types/models/spt/config/ICoreConfig.d.ts +++ b/TypeScript/13AddTrader/types/models/spt/config/ICoreConfig.d.ts @@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig { projectName: string; compatibleTarkovVersion: string; serverName: string; + profileSaveIntervalSeconds: number; commit: string; } diff --git a/TypeScript/13AddTrader/types/models/spt/server/ILocaleBase.d.ts b/TypeScript/13AddTrader/types/models/spt/server/ILocaleBase.d.ts index 3cdaf6f..3004cb8 100644 --- a/TypeScript/13AddTrader/types/models/spt/server/ILocaleBase.d.ts +++ b/TypeScript/13AddTrader/types/models/spt/server/ILocaleBase.d.ts @@ -2,4 +2,5 @@ export interface ILocaleBase { global: Record>; menu: Record; languages: Record; + server: Record>; } diff --git a/TypeScript/13AddTrader/types/servers/HttpServer.d.ts b/TypeScript/13AddTrader/types/servers/HttpServer.d.ts index 80c1d48..97e0705 100644 --- a/TypeScript/13AddTrader/types/servers/HttpServer.d.ts +++ b/TypeScript/13AddTrader/types/servers/HttpServer.d.ts @@ -18,9 +18,12 @@ export declare class HttpServer { protected configServer: ConfigServer; protected applicationContext: ApplicationContext; protected webSocketServer: WebSocketServer; - constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); protected httpConfig: IHttpConfig; - getCookies(req: http.IncomingMessage): any; - handleRequest(req: IncomingMessage, resp: ServerResponse): void; + constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); + /** + * Handle server loading event + */ load(): void; + protected handleRequest(req: IncomingMessage, resp: ServerResponse): void; + protected getCookies(req: http.IncomingMessage): Record; } diff --git a/TypeScript/14AfterDBLoadHook/types/callbacks/GameCallbacks.d.ts b/TypeScript/14AfterDBLoadHook/types/callbacks/GameCallbacks.d.ts index 30cf074..a1ce037 100644 --- a/TypeScript/14AfterDBLoadHook/types/callbacks/GameCallbacks.d.ts +++ b/TypeScript/14AfterDBLoadHook/types/callbacks/GameCallbacks.d.ts @@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails"; import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData"; import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; import { INullResponseData } from "../models/eft/httpResponse/INullResponseData"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { Watermark } from "../utils/Watermark"; declare class GameCallbacks { protected httpResponse: HttpResponseUtil; protected watermark: Watermark; + protected saveServer: SaveServer; protected gameController: GameController; - constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController); + constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController); /** * Handle client/game/version/validate * @returns INullResponseData @@ -30,6 +32,7 @@ declare class GameCallbacks { gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; /** * Handle client/game/logout + * Save profiles on game close * @returns IGameLogoutResponseData */ gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; diff --git a/TypeScript/14AfterDBLoadHook/types/callbacks/SaveCallbacks.d.ts b/TypeScript/14AfterDBLoadHook/types/callbacks/SaveCallbacks.d.ts index 93ffd96..1997f46 100644 --- a/TypeScript/14AfterDBLoadHook/types/callbacks/SaveCallbacks.d.ts +++ b/TypeScript/14AfterDBLoadHook/types/callbacks/SaveCallbacks.d.ts @@ -1,9 +1,13 @@ import { OnLoad } from "../di/OnLoad"; import { OnUpdate } from "../di/OnUpdate"; +import { ICoreConfig } from "../models/spt/config/ICoreConfig"; +import { ConfigServer } from "../servers/ConfigServer"; import { SaveServer } from "../servers/SaveServer"; export declare class SaveCallbacks implements OnLoad, OnUpdate { protected saveServer: SaveServer; - constructor(saveServer: SaveServer); + protected configServer: ConfigServer; + protected coreConfig: ICoreConfig; + constructor(saveServer: SaveServer, configServer: ConfigServer); onLoad(): Promise; getRoute(): string; onUpdate(secondsSinceLastRun: number): Promise; diff --git a/TypeScript/14AfterDBLoadHook/types/models/spt/config/ICoreConfig.d.ts b/TypeScript/14AfterDBLoadHook/types/models/spt/config/ICoreConfig.d.ts index 27903e6..c37f81f 100644 --- a/TypeScript/14AfterDBLoadHook/types/models/spt/config/ICoreConfig.d.ts +++ b/TypeScript/14AfterDBLoadHook/types/models/spt/config/ICoreConfig.d.ts @@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig { projectName: string; compatibleTarkovVersion: string; serverName: string; + profileSaveIntervalSeconds: number; commit: string; } diff --git a/TypeScript/14AfterDBLoadHook/types/models/spt/server/ILocaleBase.d.ts b/TypeScript/14AfterDBLoadHook/types/models/spt/server/ILocaleBase.d.ts index 3cdaf6f..3004cb8 100644 --- a/TypeScript/14AfterDBLoadHook/types/models/spt/server/ILocaleBase.d.ts +++ b/TypeScript/14AfterDBLoadHook/types/models/spt/server/ILocaleBase.d.ts @@ -2,4 +2,5 @@ export interface ILocaleBase { global: Record>; menu: Record; languages: Record; + server: Record>; } diff --git a/TypeScript/14AfterDBLoadHook/types/servers/HttpServer.d.ts b/TypeScript/14AfterDBLoadHook/types/servers/HttpServer.d.ts index 80c1d48..97e0705 100644 --- a/TypeScript/14AfterDBLoadHook/types/servers/HttpServer.d.ts +++ b/TypeScript/14AfterDBLoadHook/types/servers/HttpServer.d.ts @@ -18,9 +18,12 @@ export declare class HttpServer { protected configServer: ConfigServer; protected applicationContext: ApplicationContext; protected webSocketServer: WebSocketServer; - constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); protected httpConfig: IHttpConfig; - getCookies(req: http.IncomingMessage): any; - handleRequest(req: IncomingMessage, resp: ServerResponse): void; + constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); + /** + * Handle server loading event + */ load(): void; + protected handleRequest(req: IncomingMessage, resp: ServerResponse): void; + protected getCookies(req: http.IncomingMessage): Record; } diff --git a/TypeScript/15HttpListenerExample/types/callbacks/GameCallbacks.d.ts b/TypeScript/15HttpListenerExample/types/callbacks/GameCallbacks.d.ts index 30cf074..a1ce037 100644 --- a/TypeScript/15HttpListenerExample/types/callbacks/GameCallbacks.d.ts +++ b/TypeScript/15HttpListenerExample/types/callbacks/GameCallbacks.d.ts @@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails"; import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData"; import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; import { INullResponseData } from "../models/eft/httpResponse/INullResponseData"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { Watermark } from "../utils/Watermark"; declare class GameCallbacks { protected httpResponse: HttpResponseUtil; protected watermark: Watermark; + protected saveServer: SaveServer; protected gameController: GameController; - constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController); + constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController); /** * Handle client/game/version/validate * @returns INullResponseData @@ -30,6 +32,7 @@ declare class GameCallbacks { gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; /** * Handle client/game/logout + * Save profiles on game close * @returns IGameLogoutResponseData */ gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; diff --git a/TypeScript/15HttpListenerExample/types/callbacks/SaveCallbacks.d.ts b/TypeScript/15HttpListenerExample/types/callbacks/SaveCallbacks.d.ts index 93ffd96..1997f46 100644 --- a/TypeScript/15HttpListenerExample/types/callbacks/SaveCallbacks.d.ts +++ b/TypeScript/15HttpListenerExample/types/callbacks/SaveCallbacks.d.ts @@ -1,9 +1,13 @@ import { OnLoad } from "../di/OnLoad"; import { OnUpdate } from "../di/OnUpdate"; +import { ICoreConfig } from "../models/spt/config/ICoreConfig"; +import { ConfigServer } from "../servers/ConfigServer"; import { SaveServer } from "../servers/SaveServer"; export declare class SaveCallbacks implements OnLoad, OnUpdate { protected saveServer: SaveServer; - constructor(saveServer: SaveServer); + protected configServer: ConfigServer; + protected coreConfig: ICoreConfig; + constructor(saveServer: SaveServer, configServer: ConfigServer); onLoad(): Promise; getRoute(): string; onUpdate(secondsSinceLastRun: number): Promise; diff --git a/TypeScript/15HttpListenerExample/types/models/spt/config/ICoreConfig.d.ts b/TypeScript/15HttpListenerExample/types/models/spt/config/ICoreConfig.d.ts index 27903e6..c37f81f 100644 --- a/TypeScript/15HttpListenerExample/types/models/spt/config/ICoreConfig.d.ts +++ b/TypeScript/15HttpListenerExample/types/models/spt/config/ICoreConfig.d.ts @@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig { projectName: string; compatibleTarkovVersion: string; serverName: string; + profileSaveIntervalSeconds: number; commit: string; } diff --git a/TypeScript/15HttpListenerExample/types/models/spt/server/ILocaleBase.d.ts b/TypeScript/15HttpListenerExample/types/models/spt/server/ILocaleBase.d.ts index 3cdaf6f..3004cb8 100644 --- a/TypeScript/15HttpListenerExample/types/models/spt/server/ILocaleBase.d.ts +++ b/TypeScript/15HttpListenerExample/types/models/spt/server/ILocaleBase.d.ts @@ -2,4 +2,5 @@ export interface ILocaleBase { global: Record>; menu: Record; languages: Record; + server: Record>; } diff --git a/TypeScript/15HttpListenerExample/types/servers/HttpServer.d.ts b/TypeScript/15HttpListenerExample/types/servers/HttpServer.d.ts index 80c1d48..97e0705 100644 --- a/TypeScript/15HttpListenerExample/types/servers/HttpServer.d.ts +++ b/TypeScript/15HttpListenerExample/types/servers/HttpServer.d.ts @@ -18,9 +18,12 @@ export declare class HttpServer { protected configServer: ConfigServer; protected applicationContext: ApplicationContext; protected webSocketServer: WebSocketServer; - constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); protected httpConfig: IHttpConfig; - getCookies(req: http.IncomingMessage): any; - handleRequest(req: IncomingMessage, resp: ServerResponse): void; + constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); + /** + * Handle server loading event + */ load(): void; + protected handleRequest(req: IncomingMessage, resp: ServerResponse): void; + protected getCookies(req: http.IncomingMessage): Record; } diff --git a/TypeScript/16ImporterUtil/types/callbacks/GameCallbacks.d.ts b/TypeScript/16ImporterUtil/types/callbacks/GameCallbacks.d.ts index 30cf074..a1ce037 100644 --- a/TypeScript/16ImporterUtil/types/callbacks/GameCallbacks.d.ts +++ b/TypeScript/16ImporterUtil/types/callbacks/GameCallbacks.d.ts @@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails"; import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData"; import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; import { INullResponseData } from "../models/eft/httpResponse/INullResponseData"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { Watermark } from "../utils/Watermark"; declare class GameCallbacks { protected httpResponse: HttpResponseUtil; protected watermark: Watermark; + protected saveServer: SaveServer; protected gameController: GameController; - constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController); + constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController); /** * Handle client/game/version/validate * @returns INullResponseData @@ -30,6 +32,7 @@ declare class GameCallbacks { gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; /** * Handle client/game/logout + * Save profiles on game close * @returns IGameLogoutResponseData */ gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; diff --git a/TypeScript/16ImporterUtil/types/callbacks/SaveCallbacks.d.ts b/TypeScript/16ImporterUtil/types/callbacks/SaveCallbacks.d.ts index 93ffd96..1997f46 100644 --- a/TypeScript/16ImporterUtil/types/callbacks/SaveCallbacks.d.ts +++ b/TypeScript/16ImporterUtil/types/callbacks/SaveCallbacks.d.ts @@ -1,9 +1,13 @@ import { OnLoad } from "../di/OnLoad"; import { OnUpdate } from "../di/OnUpdate"; +import { ICoreConfig } from "../models/spt/config/ICoreConfig"; +import { ConfigServer } from "../servers/ConfigServer"; import { SaveServer } from "../servers/SaveServer"; export declare class SaveCallbacks implements OnLoad, OnUpdate { protected saveServer: SaveServer; - constructor(saveServer: SaveServer); + protected configServer: ConfigServer; + protected coreConfig: ICoreConfig; + constructor(saveServer: SaveServer, configServer: ConfigServer); onLoad(): Promise; getRoute(): string; onUpdate(secondsSinceLastRun: number): Promise; diff --git a/TypeScript/16ImporterUtil/types/models/spt/config/ICoreConfig.d.ts b/TypeScript/16ImporterUtil/types/models/spt/config/ICoreConfig.d.ts index 27903e6..c37f81f 100644 --- a/TypeScript/16ImporterUtil/types/models/spt/config/ICoreConfig.d.ts +++ b/TypeScript/16ImporterUtil/types/models/spt/config/ICoreConfig.d.ts @@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig { projectName: string; compatibleTarkovVersion: string; serverName: string; + profileSaveIntervalSeconds: number; commit: string; } diff --git a/TypeScript/16ImporterUtil/types/models/spt/server/ILocaleBase.d.ts b/TypeScript/16ImporterUtil/types/models/spt/server/ILocaleBase.d.ts index 3cdaf6f..3004cb8 100644 --- a/TypeScript/16ImporterUtil/types/models/spt/server/ILocaleBase.d.ts +++ b/TypeScript/16ImporterUtil/types/models/spt/server/ILocaleBase.d.ts @@ -2,4 +2,5 @@ export interface ILocaleBase { global: Record>; menu: Record; languages: Record; + server: Record>; } diff --git a/TypeScript/16ImporterUtil/types/servers/HttpServer.d.ts b/TypeScript/16ImporterUtil/types/servers/HttpServer.d.ts index 80c1d48..97e0705 100644 --- a/TypeScript/16ImporterUtil/types/servers/HttpServer.d.ts +++ b/TypeScript/16ImporterUtil/types/servers/HttpServer.d.ts @@ -18,9 +18,12 @@ export declare class HttpServer { protected configServer: ConfigServer; protected applicationContext: ApplicationContext; protected webSocketServer: WebSocketServer; - constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); protected httpConfig: IHttpConfig; - getCookies(req: http.IncomingMessage): any; - handleRequest(req: IncomingMessage, resp: ServerResponse): void; + constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); + /** + * Handle server loading event + */ load(): void; + protected handleRequest(req: IncomingMessage, resp: ServerResponse): void; + protected getCookies(req: http.IncomingMessage): Record; } diff --git a/TypeScript/17AsyncImporterWithDependency1/types/callbacks/GameCallbacks.d.ts b/TypeScript/17AsyncImporterWithDependency1/types/callbacks/GameCallbacks.d.ts index 30cf074..a1ce037 100644 --- a/TypeScript/17AsyncImporterWithDependency1/types/callbacks/GameCallbacks.d.ts +++ b/TypeScript/17AsyncImporterWithDependency1/types/callbacks/GameCallbacks.d.ts @@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails"; import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData"; import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; import { INullResponseData } from "../models/eft/httpResponse/INullResponseData"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { Watermark } from "../utils/Watermark"; declare class GameCallbacks { protected httpResponse: HttpResponseUtil; protected watermark: Watermark; + protected saveServer: SaveServer; protected gameController: GameController; - constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController); + constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController); /** * Handle client/game/version/validate * @returns INullResponseData @@ -30,6 +32,7 @@ declare class GameCallbacks { gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; /** * Handle client/game/logout + * Save profiles on game close * @returns IGameLogoutResponseData */ gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; diff --git a/TypeScript/17AsyncImporterWithDependency1/types/callbacks/SaveCallbacks.d.ts b/TypeScript/17AsyncImporterWithDependency1/types/callbacks/SaveCallbacks.d.ts index 93ffd96..1997f46 100644 --- a/TypeScript/17AsyncImporterWithDependency1/types/callbacks/SaveCallbacks.d.ts +++ b/TypeScript/17AsyncImporterWithDependency1/types/callbacks/SaveCallbacks.d.ts @@ -1,9 +1,13 @@ import { OnLoad } from "../di/OnLoad"; import { OnUpdate } from "../di/OnUpdate"; +import { ICoreConfig } from "../models/spt/config/ICoreConfig"; +import { ConfigServer } from "../servers/ConfigServer"; import { SaveServer } from "../servers/SaveServer"; export declare class SaveCallbacks implements OnLoad, OnUpdate { protected saveServer: SaveServer; - constructor(saveServer: SaveServer); + protected configServer: ConfigServer; + protected coreConfig: ICoreConfig; + constructor(saveServer: SaveServer, configServer: ConfigServer); onLoad(): Promise; getRoute(): string; onUpdate(secondsSinceLastRun: number): Promise; diff --git a/TypeScript/17AsyncImporterWithDependency1/types/models/spt/config/ICoreConfig.d.ts b/TypeScript/17AsyncImporterWithDependency1/types/models/spt/config/ICoreConfig.d.ts index 27903e6..c37f81f 100644 --- a/TypeScript/17AsyncImporterWithDependency1/types/models/spt/config/ICoreConfig.d.ts +++ b/TypeScript/17AsyncImporterWithDependency1/types/models/spt/config/ICoreConfig.d.ts @@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig { projectName: string; compatibleTarkovVersion: string; serverName: string; + profileSaveIntervalSeconds: number; commit: string; } diff --git a/TypeScript/17AsyncImporterWithDependency1/types/models/spt/server/ILocaleBase.d.ts b/TypeScript/17AsyncImporterWithDependency1/types/models/spt/server/ILocaleBase.d.ts index 3cdaf6f..3004cb8 100644 --- a/TypeScript/17AsyncImporterWithDependency1/types/models/spt/server/ILocaleBase.d.ts +++ b/TypeScript/17AsyncImporterWithDependency1/types/models/spt/server/ILocaleBase.d.ts @@ -2,4 +2,5 @@ export interface ILocaleBase { global: Record>; menu: Record; languages: Record; + server: Record>; } diff --git a/TypeScript/17AsyncImporterWithDependency1/types/servers/HttpServer.d.ts b/TypeScript/17AsyncImporterWithDependency1/types/servers/HttpServer.d.ts index 80c1d48..97e0705 100644 --- a/TypeScript/17AsyncImporterWithDependency1/types/servers/HttpServer.d.ts +++ b/TypeScript/17AsyncImporterWithDependency1/types/servers/HttpServer.d.ts @@ -18,9 +18,12 @@ export declare class HttpServer { protected configServer: ConfigServer; protected applicationContext: ApplicationContext; protected webSocketServer: WebSocketServer; - constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); protected httpConfig: IHttpConfig; - getCookies(req: http.IncomingMessage): any; - handleRequest(req: IncomingMessage, resp: ServerResponse): void; + constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); + /** + * Handle server loading event + */ load(): void; + protected handleRequest(req: IncomingMessage, resp: ServerResponse): void; + protected getCookies(req: http.IncomingMessage): Record; } diff --git a/TypeScript/17AsyncImporterWithDependency2/types/callbacks/GameCallbacks.d.ts b/TypeScript/17AsyncImporterWithDependency2/types/callbacks/GameCallbacks.d.ts index 30cf074..a1ce037 100644 --- a/TypeScript/17AsyncImporterWithDependency2/types/callbacks/GameCallbacks.d.ts +++ b/TypeScript/17AsyncImporterWithDependency2/types/callbacks/GameCallbacks.d.ts @@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails"; import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData"; import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; import { INullResponseData } from "../models/eft/httpResponse/INullResponseData"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { Watermark } from "../utils/Watermark"; declare class GameCallbacks { protected httpResponse: HttpResponseUtil; protected watermark: Watermark; + protected saveServer: SaveServer; protected gameController: GameController; - constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController); + constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController); /** * Handle client/game/version/validate * @returns INullResponseData @@ -30,6 +32,7 @@ declare class GameCallbacks { gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; /** * Handle client/game/logout + * Save profiles on game close * @returns IGameLogoutResponseData */ gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; diff --git a/TypeScript/17AsyncImporterWithDependency2/types/callbacks/SaveCallbacks.d.ts b/TypeScript/17AsyncImporterWithDependency2/types/callbacks/SaveCallbacks.d.ts index 93ffd96..1997f46 100644 --- a/TypeScript/17AsyncImporterWithDependency2/types/callbacks/SaveCallbacks.d.ts +++ b/TypeScript/17AsyncImporterWithDependency2/types/callbacks/SaveCallbacks.d.ts @@ -1,9 +1,13 @@ import { OnLoad } from "../di/OnLoad"; import { OnUpdate } from "../di/OnUpdate"; +import { ICoreConfig } from "../models/spt/config/ICoreConfig"; +import { ConfigServer } from "../servers/ConfigServer"; import { SaveServer } from "../servers/SaveServer"; export declare class SaveCallbacks implements OnLoad, OnUpdate { protected saveServer: SaveServer; - constructor(saveServer: SaveServer); + protected configServer: ConfigServer; + protected coreConfig: ICoreConfig; + constructor(saveServer: SaveServer, configServer: ConfigServer); onLoad(): Promise; getRoute(): string; onUpdate(secondsSinceLastRun: number): Promise; diff --git a/TypeScript/17AsyncImporterWithDependency2/types/models/spt/config/ICoreConfig.d.ts b/TypeScript/17AsyncImporterWithDependency2/types/models/spt/config/ICoreConfig.d.ts index 27903e6..c37f81f 100644 --- a/TypeScript/17AsyncImporterWithDependency2/types/models/spt/config/ICoreConfig.d.ts +++ b/TypeScript/17AsyncImporterWithDependency2/types/models/spt/config/ICoreConfig.d.ts @@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig { projectName: string; compatibleTarkovVersion: string; serverName: string; + profileSaveIntervalSeconds: number; commit: string; } diff --git a/TypeScript/17AsyncImporterWithDependency2/types/models/spt/server/ILocaleBase.d.ts b/TypeScript/17AsyncImporterWithDependency2/types/models/spt/server/ILocaleBase.d.ts index 3cdaf6f..3004cb8 100644 --- a/TypeScript/17AsyncImporterWithDependency2/types/models/spt/server/ILocaleBase.d.ts +++ b/TypeScript/17AsyncImporterWithDependency2/types/models/spt/server/ILocaleBase.d.ts @@ -2,4 +2,5 @@ export interface ILocaleBase { global: Record>; menu: Record; languages: Record; + server: Record>; } diff --git a/TypeScript/17AsyncImporterWithDependency2/types/servers/HttpServer.d.ts b/TypeScript/17AsyncImporterWithDependency2/types/servers/HttpServer.d.ts index 80c1d48..97e0705 100644 --- a/TypeScript/17AsyncImporterWithDependency2/types/servers/HttpServer.d.ts +++ b/TypeScript/17AsyncImporterWithDependency2/types/servers/HttpServer.d.ts @@ -18,9 +18,12 @@ export declare class HttpServer { protected configServer: ConfigServer; protected applicationContext: ApplicationContext; protected webSocketServer: WebSocketServer; - constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); protected httpConfig: IHttpConfig; - getCookies(req: http.IncomingMessage): any; - handleRequest(req: IncomingMessage, resp: ServerResponse): void; + constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); + /** + * Handle server loading event + */ load(): void; + protected handleRequest(req: IncomingMessage, resp: ServerResponse): void; + protected getCookies(req: http.IncomingMessage): Record; } diff --git a/TypeScript/1LogToConsole/types/callbacks/GameCallbacks.d.ts b/TypeScript/1LogToConsole/types/callbacks/GameCallbacks.d.ts index 30cf074..a1ce037 100644 --- a/TypeScript/1LogToConsole/types/callbacks/GameCallbacks.d.ts +++ b/TypeScript/1LogToConsole/types/callbacks/GameCallbacks.d.ts @@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails"; import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData"; import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; import { INullResponseData } from "../models/eft/httpResponse/INullResponseData"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { Watermark } from "../utils/Watermark"; declare class GameCallbacks { protected httpResponse: HttpResponseUtil; protected watermark: Watermark; + protected saveServer: SaveServer; protected gameController: GameController; - constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController); + constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController); /** * Handle client/game/version/validate * @returns INullResponseData @@ -30,6 +32,7 @@ declare class GameCallbacks { gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; /** * Handle client/game/logout + * Save profiles on game close * @returns IGameLogoutResponseData */ gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; diff --git a/TypeScript/1LogToConsole/types/callbacks/SaveCallbacks.d.ts b/TypeScript/1LogToConsole/types/callbacks/SaveCallbacks.d.ts index 93ffd96..1997f46 100644 --- a/TypeScript/1LogToConsole/types/callbacks/SaveCallbacks.d.ts +++ b/TypeScript/1LogToConsole/types/callbacks/SaveCallbacks.d.ts @@ -1,9 +1,13 @@ import { OnLoad } from "../di/OnLoad"; import { OnUpdate } from "../di/OnUpdate"; +import { ICoreConfig } from "../models/spt/config/ICoreConfig"; +import { ConfigServer } from "../servers/ConfigServer"; import { SaveServer } from "../servers/SaveServer"; export declare class SaveCallbacks implements OnLoad, OnUpdate { protected saveServer: SaveServer; - constructor(saveServer: SaveServer); + protected configServer: ConfigServer; + protected coreConfig: ICoreConfig; + constructor(saveServer: SaveServer, configServer: ConfigServer); onLoad(): Promise; getRoute(): string; onUpdate(secondsSinceLastRun: number): Promise; diff --git a/TypeScript/1LogToConsole/types/models/spt/config/ICoreConfig.d.ts b/TypeScript/1LogToConsole/types/models/spt/config/ICoreConfig.d.ts index 27903e6..c37f81f 100644 --- a/TypeScript/1LogToConsole/types/models/spt/config/ICoreConfig.d.ts +++ b/TypeScript/1LogToConsole/types/models/spt/config/ICoreConfig.d.ts @@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig { projectName: string; compatibleTarkovVersion: string; serverName: string; + profileSaveIntervalSeconds: number; commit: string; } diff --git a/TypeScript/1LogToConsole/types/models/spt/server/ILocaleBase.d.ts b/TypeScript/1LogToConsole/types/models/spt/server/ILocaleBase.d.ts index 3cdaf6f..3004cb8 100644 --- a/TypeScript/1LogToConsole/types/models/spt/server/ILocaleBase.d.ts +++ b/TypeScript/1LogToConsole/types/models/spt/server/ILocaleBase.d.ts @@ -2,4 +2,5 @@ export interface ILocaleBase { global: Record>; menu: Record; languages: Record; + server: Record>; } diff --git a/TypeScript/1LogToConsole/types/servers/HttpServer.d.ts b/TypeScript/1LogToConsole/types/servers/HttpServer.d.ts index 80c1d48..97e0705 100644 --- a/TypeScript/1LogToConsole/types/servers/HttpServer.d.ts +++ b/TypeScript/1LogToConsole/types/servers/HttpServer.d.ts @@ -18,9 +18,12 @@ export declare class HttpServer { protected configServer: ConfigServer; protected applicationContext: ApplicationContext; protected webSocketServer: WebSocketServer; - constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); protected httpConfig: IHttpConfig; - getCookies(req: http.IncomingMessage): any; - handleRequest(req: IncomingMessage, resp: ServerResponse): void; + constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); + /** + * Handle server loading event + */ load(): void; + protected handleRequest(req: IncomingMessage, resp: ServerResponse): void; + protected getCookies(req: http.IncomingMessage): Record; } diff --git a/TypeScript/2EditDatabase/types/callbacks/GameCallbacks.d.ts b/TypeScript/2EditDatabase/types/callbacks/GameCallbacks.d.ts index 30cf074..a1ce037 100644 --- a/TypeScript/2EditDatabase/types/callbacks/GameCallbacks.d.ts +++ b/TypeScript/2EditDatabase/types/callbacks/GameCallbacks.d.ts @@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails"; import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData"; import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; import { INullResponseData } from "../models/eft/httpResponse/INullResponseData"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { Watermark } from "../utils/Watermark"; declare class GameCallbacks { protected httpResponse: HttpResponseUtil; protected watermark: Watermark; + protected saveServer: SaveServer; protected gameController: GameController; - constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController); + constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController); /** * Handle client/game/version/validate * @returns INullResponseData @@ -30,6 +32,7 @@ declare class GameCallbacks { gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; /** * Handle client/game/logout + * Save profiles on game close * @returns IGameLogoutResponseData */ gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; diff --git a/TypeScript/2EditDatabase/types/callbacks/SaveCallbacks.d.ts b/TypeScript/2EditDatabase/types/callbacks/SaveCallbacks.d.ts index 93ffd96..1997f46 100644 --- a/TypeScript/2EditDatabase/types/callbacks/SaveCallbacks.d.ts +++ b/TypeScript/2EditDatabase/types/callbacks/SaveCallbacks.d.ts @@ -1,9 +1,13 @@ import { OnLoad } from "../di/OnLoad"; import { OnUpdate } from "../di/OnUpdate"; +import { ICoreConfig } from "../models/spt/config/ICoreConfig"; +import { ConfigServer } from "../servers/ConfigServer"; import { SaveServer } from "../servers/SaveServer"; export declare class SaveCallbacks implements OnLoad, OnUpdate { protected saveServer: SaveServer; - constructor(saveServer: SaveServer); + protected configServer: ConfigServer; + protected coreConfig: ICoreConfig; + constructor(saveServer: SaveServer, configServer: ConfigServer); onLoad(): Promise; getRoute(): string; onUpdate(secondsSinceLastRun: number): Promise; diff --git a/TypeScript/2EditDatabase/types/models/spt/config/ICoreConfig.d.ts b/TypeScript/2EditDatabase/types/models/spt/config/ICoreConfig.d.ts index 27903e6..c37f81f 100644 --- a/TypeScript/2EditDatabase/types/models/spt/config/ICoreConfig.d.ts +++ b/TypeScript/2EditDatabase/types/models/spt/config/ICoreConfig.d.ts @@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig { projectName: string; compatibleTarkovVersion: string; serverName: string; + profileSaveIntervalSeconds: number; commit: string; } diff --git a/TypeScript/2EditDatabase/types/models/spt/server/ILocaleBase.d.ts b/TypeScript/2EditDatabase/types/models/spt/server/ILocaleBase.d.ts index 3cdaf6f..3004cb8 100644 --- a/TypeScript/2EditDatabase/types/models/spt/server/ILocaleBase.d.ts +++ b/TypeScript/2EditDatabase/types/models/spt/server/ILocaleBase.d.ts @@ -2,4 +2,5 @@ export interface ILocaleBase { global: Record>; menu: Record; languages: Record; + server: Record>; } diff --git a/TypeScript/2EditDatabase/types/servers/HttpServer.d.ts b/TypeScript/2EditDatabase/types/servers/HttpServer.d.ts index 80c1d48..97e0705 100644 --- a/TypeScript/2EditDatabase/types/servers/HttpServer.d.ts +++ b/TypeScript/2EditDatabase/types/servers/HttpServer.d.ts @@ -18,9 +18,12 @@ export declare class HttpServer { protected configServer: ConfigServer; protected applicationContext: ApplicationContext; protected webSocketServer: WebSocketServer; - constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); protected httpConfig: IHttpConfig; - getCookies(req: http.IncomingMessage): any; - handleRequest(req: IncomingMessage, resp: ServerResponse): void; + constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); + /** + * Handle server loading event + */ load(): void; + protected handleRequest(req: IncomingMessage, resp: ServerResponse): void; + protected getCookies(req: http.IncomingMessage): Record; } diff --git a/TypeScript/3GetSptConfigFile/types/callbacks/GameCallbacks.d.ts b/TypeScript/3GetSptConfigFile/types/callbacks/GameCallbacks.d.ts index 30cf074..a1ce037 100644 --- a/TypeScript/3GetSptConfigFile/types/callbacks/GameCallbacks.d.ts +++ b/TypeScript/3GetSptConfigFile/types/callbacks/GameCallbacks.d.ts @@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails"; import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData"; import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; import { INullResponseData } from "../models/eft/httpResponse/INullResponseData"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { Watermark } from "../utils/Watermark"; declare class GameCallbacks { protected httpResponse: HttpResponseUtil; protected watermark: Watermark; + protected saveServer: SaveServer; protected gameController: GameController; - constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController); + constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController); /** * Handle client/game/version/validate * @returns INullResponseData @@ -30,6 +32,7 @@ declare class GameCallbacks { gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; /** * Handle client/game/logout + * Save profiles on game close * @returns IGameLogoutResponseData */ gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; diff --git a/TypeScript/3GetSptConfigFile/types/callbacks/SaveCallbacks.d.ts b/TypeScript/3GetSptConfigFile/types/callbacks/SaveCallbacks.d.ts index 93ffd96..1997f46 100644 --- a/TypeScript/3GetSptConfigFile/types/callbacks/SaveCallbacks.d.ts +++ b/TypeScript/3GetSptConfigFile/types/callbacks/SaveCallbacks.d.ts @@ -1,9 +1,13 @@ import { OnLoad } from "../di/OnLoad"; import { OnUpdate } from "../di/OnUpdate"; +import { ICoreConfig } from "../models/spt/config/ICoreConfig"; +import { ConfigServer } from "../servers/ConfigServer"; import { SaveServer } from "../servers/SaveServer"; export declare class SaveCallbacks implements OnLoad, OnUpdate { protected saveServer: SaveServer; - constructor(saveServer: SaveServer); + protected configServer: ConfigServer; + protected coreConfig: ICoreConfig; + constructor(saveServer: SaveServer, configServer: ConfigServer); onLoad(): Promise; getRoute(): string; onUpdate(secondsSinceLastRun: number): Promise; diff --git a/TypeScript/3GetSptConfigFile/types/models/spt/config/ICoreConfig.d.ts b/TypeScript/3GetSptConfigFile/types/models/spt/config/ICoreConfig.d.ts index 27903e6..c37f81f 100644 --- a/TypeScript/3GetSptConfigFile/types/models/spt/config/ICoreConfig.d.ts +++ b/TypeScript/3GetSptConfigFile/types/models/spt/config/ICoreConfig.d.ts @@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig { projectName: string; compatibleTarkovVersion: string; serverName: string; + profileSaveIntervalSeconds: number; commit: string; } diff --git a/TypeScript/3GetSptConfigFile/types/models/spt/server/ILocaleBase.d.ts b/TypeScript/3GetSptConfigFile/types/models/spt/server/ILocaleBase.d.ts index 3cdaf6f..3004cb8 100644 --- a/TypeScript/3GetSptConfigFile/types/models/spt/server/ILocaleBase.d.ts +++ b/TypeScript/3GetSptConfigFile/types/models/spt/server/ILocaleBase.d.ts @@ -2,4 +2,5 @@ export interface ILocaleBase { global: Record>; menu: Record; languages: Record; + server: Record>; } diff --git a/TypeScript/3GetSptConfigFile/types/servers/HttpServer.d.ts b/TypeScript/3GetSptConfigFile/types/servers/HttpServer.d.ts index 80c1d48..97e0705 100644 --- a/TypeScript/3GetSptConfigFile/types/servers/HttpServer.d.ts +++ b/TypeScript/3GetSptConfigFile/types/servers/HttpServer.d.ts @@ -18,9 +18,12 @@ export declare class HttpServer { protected configServer: ConfigServer; protected applicationContext: ApplicationContext; protected webSocketServer: WebSocketServer; - constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); protected httpConfig: IHttpConfig; - getCookies(req: http.IncomingMessage): any; - handleRequest(req: IncomingMessage, resp: ServerResponse): void; + constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); + /** + * Handle server loading event + */ load(): void; + protected handleRequest(req: IncomingMessage, resp: ServerResponse): void; + protected getCookies(req: http.IncomingMessage): Record; } diff --git a/TypeScript/4UseACustomConfigFile/types/callbacks/GameCallbacks.d.ts b/TypeScript/4UseACustomConfigFile/types/callbacks/GameCallbacks.d.ts index 30cf074..a1ce037 100644 --- a/TypeScript/4UseACustomConfigFile/types/callbacks/GameCallbacks.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/callbacks/GameCallbacks.d.ts @@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails"; import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData"; import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; import { INullResponseData } from "../models/eft/httpResponse/INullResponseData"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { Watermark } from "../utils/Watermark"; declare class GameCallbacks { protected httpResponse: HttpResponseUtil; protected watermark: Watermark; + protected saveServer: SaveServer; protected gameController: GameController; - constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController); + constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController); /** * Handle client/game/version/validate * @returns INullResponseData @@ -30,6 +32,7 @@ declare class GameCallbacks { gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; /** * Handle client/game/logout + * Save profiles on game close * @returns IGameLogoutResponseData */ gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; diff --git a/TypeScript/4UseACustomConfigFile/types/callbacks/SaveCallbacks.d.ts b/TypeScript/4UseACustomConfigFile/types/callbacks/SaveCallbacks.d.ts index 93ffd96..1997f46 100644 --- a/TypeScript/4UseACustomConfigFile/types/callbacks/SaveCallbacks.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/callbacks/SaveCallbacks.d.ts @@ -1,9 +1,13 @@ import { OnLoad } from "../di/OnLoad"; import { OnUpdate } from "../di/OnUpdate"; +import { ICoreConfig } from "../models/spt/config/ICoreConfig"; +import { ConfigServer } from "../servers/ConfigServer"; import { SaveServer } from "../servers/SaveServer"; export declare class SaveCallbacks implements OnLoad, OnUpdate { protected saveServer: SaveServer; - constructor(saveServer: SaveServer); + protected configServer: ConfigServer; + protected coreConfig: ICoreConfig; + constructor(saveServer: SaveServer, configServer: ConfigServer); onLoad(): Promise; getRoute(): string; onUpdate(secondsSinceLastRun: number): Promise; diff --git a/TypeScript/4UseACustomConfigFile/types/models/spt/config/ICoreConfig.d.ts b/TypeScript/4UseACustomConfigFile/types/models/spt/config/ICoreConfig.d.ts index 27903e6..c37f81f 100644 --- a/TypeScript/4UseACustomConfigFile/types/models/spt/config/ICoreConfig.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/models/spt/config/ICoreConfig.d.ts @@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig { projectName: string; compatibleTarkovVersion: string; serverName: string; + profileSaveIntervalSeconds: number; commit: string; } diff --git a/TypeScript/4UseACustomConfigFile/types/models/spt/server/ILocaleBase.d.ts b/TypeScript/4UseACustomConfigFile/types/models/spt/server/ILocaleBase.d.ts index 3cdaf6f..3004cb8 100644 --- a/TypeScript/4UseACustomConfigFile/types/models/spt/server/ILocaleBase.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/models/spt/server/ILocaleBase.d.ts @@ -2,4 +2,5 @@ export interface ILocaleBase { global: Record>; menu: Record; languages: Record; + server: Record>; } diff --git a/TypeScript/4UseACustomConfigFile/types/servers/HttpServer.d.ts b/TypeScript/4UseACustomConfigFile/types/servers/HttpServer.d.ts index 80c1d48..97e0705 100644 --- a/TypeScript/4UseACustomConfigFile/types/servers/HttpServer.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/servers/HttpServer.d.ts @@ -18,9 +18,12 @@ export declare class HttpServer { protected configServer: ConfigServer; protected applicationContext: ApplicationContext; protected webSocketServer: WebSocketServer; - constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); protected httpConfig: IHttpConfig; - getCookies(req: http.IncomingMessage): any; - handleRequest(req: IncomingMessage, resp: ServerResponse): void; + constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); + /** + * Handle server loading event + */ load(): void; + protected handleRequest(req: IncomingMessage, resp: ServerResponse): void; + protected getCookies(req: http.IncomingMessage): Record; } diff --git a/TypeScript/5ReplaceMethod/types/callbacks/GameCallbacks.d.ts b/TypeScript/5ReplaceMethod/types/callbacks/GameCallbacks.d.ts index 30cf074..a1ce037 100644 --- a/TypeScript/5ReplaceMethod/types/callbacks/GameCallbacks.d.ts +++ b/TypeScript/5ReplaceMethod/types/callbacks/GameCallbacks.d.ts @@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails"; import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData"; import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; import { INullResponseData } from "../models/eft/httpResponse/INullResponseData"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { Watermark } from "../utils/Watermark"; declare class GameCallbacks { protected httpResponse: HttpResponseUtil; protected watermark: Watermark; + protected saveServer: SaveServer; protected gameController: GameController; - constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController); + constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController); /** * Handle client/game/version/validate * @returns INullResponseData @@ -30,6 +32,7 @@ declare class GameCallbacks { gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; /** * Handle client/game/logout + * Save profiles on game close * @returns IGameLogoutResponseData */ gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; diff --git a/TypeScript/5ReplaceMethod/types/callbacks/SaveCallbacks.d.ts b/TypeScript/5ReplaceMethod/types/callbacks/SaveCallbacks.d.ts index 93ffd96..1997f46 100644 --- a/TypeScript/5ReplaceMethod/types/callbacks/SaveCallbacks.d.ts +++ b/TypeScript/5ReplaceMethod/types/callbacks/SaveCallbacks.d.ts @@ -1,9 +1,13 @@ import { OnLoad } from "../di/OnLoad"; import { OnUpdate } from "../di/OnUpdate"; +import { ICoreConfig } from "../models/spt/config/ICoreConfig"; +import { ConfigServer } from "../servers/ConfigServer"; import { SaveServer } from "../servers/SaveServer"; export declare class SaveCallbacks implements OnLoad, OnUpdate { protected saveServer: SaveServer; - constructor(saveServer: SaveServer); + protected configServer: ConfigServer; + protected coreConfig: ICoreConfig; + constructor(saveServer: SaveServer, configServer: ConfigServer); onLoad(): Promise; getRoute(): string; onUpdate(secondsSinceLastRun: number): Promise; diff --git a/TypeScript/5ReplaceMethod/types/models/spt/config/ICoreConfig.d.ts b/TypeScript/5ReplaceMethod/types/models/spt/config/ICoreConfig.d.ts index 27903e6..c37f81f 100644 --- a/TypeScript/5ReplaceMethod/types/models/spt/config/ICoreConfig.d.ts +++ b/TypeScript/5ReplaceMethod/types/models/spt/config/ICoreConfig.d.ts @@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig { projectName: string; compatibleTarkovVersion: string; serverName: string; + profileSaveIntervalSeconds: number; commit: string; } diff --git a/TypeScript/5ReplaceMethod/types/models/spt/server/ILocaleBase.d.ts b/TypeScript/5ReplaceMethod/types/models/spt/server/ILocaleBase.d.ts index 3cdaf6f..3004cb8 100644 --- a/TypeScript/5ReplaceMethod/types/models/spt/server/ILocaleBase.d.ts +++ b/TypeScript/5ReplaceMethod/types/models/spt/server/ILocaleBase.d.ts @@ -2,4 +2,5 @@ export interface ILocaleBase { global: Record>; menu: Record; languages: Record; + server: Record>; } diff --git a/TypeScript/5ReplaceMethod/types/servers/HttpServer.d.ts b/TypeScript/5ReplaceMethod/types/servers/HttpServer.d.ts index 80c1d48..97e0705 100644 --- a/TypeScript/5ReplaceMethod/types/servers/HttpServer.d.ts +++ b/TypeScript/5ReplaceMethod/types/servers/HttpServer.d.ts @@ -18,9 +18,12 @@ export declare class HttpServer { protected configServer: ConfigServer; protected applicationContext: ApplicationContext; protected webSocketServer: WebSocketServer; - constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); protected httpConfig: IHttpConfig; - getCookies(req: http.IncomingMessage): any; - handleRequest(req: IncomingMessage, resp: ServerResponse): void; + constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); + /** + * Handle server loading event + */ load(): void; + protected handleRequest(req: IncomingMessage, resp: ServerResponse): void; + protected getCookies(req: http.IncomingMessage): Record; } diff --git a/TypeScript/6ReferenceAnotherClass/types/callbacks/GameCallbacks.d.ts b/TypeScript/6ReferenceAnotherClass/types/callbacks/GameCallbacks.d.ts index 30cf074..a1ce037 100644 --- a/TypeScript/6ReferenceAnotherClass/types/callbacks/GameCallbacks.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/callbacks/GameCallbacks.d.ts @@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails"; import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData"; import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; import { INullResponseData } from "../models/eft/httpResponse/INullResponseData"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { Watermark } from "../utils/Watermark"; declare class GameCallbacks { protected httpResponse: HttpResponseUtil; protected watermark: Watermark; + protected saveServer: SaveServer; protected gameController: GameController; - constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController); + constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController); /** * Handle client/game/version/validate * @returns INullResponseData @@ -30,6 +32,7 @@ declare class GameCallbacks { gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; /** * Handle client/game/logout + * Save profiles on game close * @returns IGameLogoutResponseData */ gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; diff --git a/TypeScript/6ReferenceAnotherClass/types/callbacks/SaveCallbacks.d.ts b/TypeScript/6ReferenceAnotherClass/types/callbacks/SaveCallbacks.d.ts index 93ffd96..1997f46 100644 --- a/TypeScript/6ReferenceAnotherClass/types/callbacks/SaveCallbacks.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/callbacks/SaveCallbacks.d.ts @@ -1,9 +1,13 @@ import { OnLoad } from "../di/OnLoad"; import { OnUpdate } from "../di/OnUpdate"; +import { ICoreConfig } from "../models/spt/config/ICoreConfig"; +import { ConfigServer } from "../servers/ConfigServer"; import { SaveServer } from "../servers/SaveServer"; export declare class SaveCallbacks implements OnLoad, OnUpdate { protected saveServer: SaveServer; - constructor(saveServer: SaveServer); + protected configServer: ConfigServer; + protected coreConfig: ICoreConfig; + constructor(saveServer: SaveServer, configServer: ConfigServer); onLoad(): Promise; getRoute(): string; onUpdate(secondsSinceLastRun: number): Promise; diff --git a/TypeScript/6ReferenceAnotherClass/types/models/spt/config/ICoreConfig.d.ts b/TypeScript/6ReferenceAnotherClass/types/models/spt/config/ICoreConfig.d.ts index 27903e6..c37f81f 100644 --- a/TypeScript/6ReferenceAnotherClass/types/models/spt/config/ICoreConfig.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/models/spt/config/ICoreConfig.d.ts @@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig { projectName: string; compatibleTarkovVersion: string; serverName: string; + profileSaveIntervalSeconds: number; commit: string; } diff --git a/TypeScript/6ReferenceAnotherClass/types/models/spt/server/ILocaleBase.d.ts b/TypeScript/6ReferenceAnotherClass/types/models/spt/server/ILocaleBase.d.ts index 3cdaf6f..3004cb8 100644 --- a/TypeScript/6ReferenceAnotherClass/types/models/spt/server/ILocaleBase.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/models/spt/server/ILocaleBase.d.ts @@ -2,4 +2,5 @@ export interface ILocaleBase { global: Record>; menu: Record; languages: Record; + server: Record>; } diff --git a/TypeScript/6ReferenceAnotherClass/types/servers/HttpServer.d.ts b/TypeScript/6ReferenceAnotherClass/types/servers/HttpServer.d.ts index 80c1d48..97e0705 100644 --- a/TypeScript/6ReferenceAnotherClass/types/servers/HttpServer.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/servers/HttpServer.d.ts @@ -18,9 +18,12 @@ export declare class HttpServer { protected configServer: ConfigServer; protected applicationContext: ApplicationContext; protected webSocketServer: WebSocketServer; - constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); protected httpConfig: IHttpConfig; - getCookies(req: http.IncomingMessage): any; - handleRequest(req: IncomingMessage, resp: ServerResponse): void; + constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); + /** + * Handle server loading event + */ load(): void; + protected handleRequest(req: IncomingMessage, resp: ServerResponse): void; + protected getCookies(req: http.IncomingMessage): Record; } diff --git a/TypeScript/7OnLoadHook/types/callbacks/GameCallbacks.d.ts b/TypeScript/7OnLoadHook/types/callbacks/GameCallbacks.d.ts index 30cf074..a1ce037 100644 --- a/TypeScript/7OnLoadHook/types/callbacks/GameCallbacks.d.ts +++ b/TypeScript/7OnLoadHook/types/callbacks/GameCallbacks.d.ts @@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails"; import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData"; import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; import { INullResponseData } from "../models/eft/httpResponse/INullResponseData"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { Watermark } from "../utils/Watermark"; declare class GameCallbacks { protected httpResponse: HttpResponseUtil; protected watermark: Watermark; + protected saveServer: SaveServer; protected gameController: GameController; - constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController); + constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController); /** * Handle client/game/version/validate * @returns INullResponseData @@ -30,6 +32,7 @@ declare class GameCallbacks { gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; /** * Handle client/game/logout + * Save profiles on game close * @returns IGameLogoutResponseData */ gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; diff --git a/TypeScript/7OnLoadHook/types/callbacks/SaveCallbacks.d.ts b/TypeScript/7OnLoadHook/types/callbacks/SaveCallbacks.d.ts index 93ffd96..1997f46 100644 --- a/TypeScript/7OnLoadHook/types/callbacks/SaveCallbacks.d.ts +++ b/TypeScript/7OnLoadHook/types/callbacks/SaveCallbacks.d.ts @@ -1,9 +1,13 @@ import { OnLoad } from "../di/OnLoad"; import { OnUpdate } from "../di/OnUpdate"; +import { ICoreConfig } from "../models/spt/config/ICoreConfig"; +import { ConfigServer } from "../servers/ConfigServer"; import { SaveServer } from "../servers/SaveServer"; export declare class SaveCallbacks implements OnLoad, OnUpdate { protected saveServer: SaveServer; - constructor(saveServer: SaveServer); + protected configServer: ConfigServer; + protected coreConfig: ICoreConfig; + constructor(saveServer: SaveServer, configServer: ConfigServer); onLoad(): Promise; getRoute(): string; onUpdate(secondsSinceLastRun: number): Promise; diff --git a/TypeScript/7OnLoadHook/types/models/spt/config/ICoreConfig.d.ts b/TypeScript/7OnLoadHook/types/models/spt/config/ICoreConfig.d.ts index 27903e6..c37f81f 100644 --- a/TypeScript/7OnLoadHook/types/models/spt/config/ICoreConfig.d.ts +++ b/TypeScript/7OnLoadHook/types/models/spt/config/ICoreConfig.d.ts @@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig { projectName: string; compatibleTarkovVersion: string; serverName: string; + profileSaveIntervalSeconds: number; commit: string; } diff --git a/TypeScript/7OnLoadHook/types/models/spt/server/ILocaleBase.d.ts b/TypeScript/7OnLoadHook/types/models/spt/server/ILocaleBase.d.ts index 3cdaf6f..3004cb8 100644 --- a/TypeScript/7OnLoadHook/types/models/spt/server/ILocaleBase.d.ts +++ b/TypeScript/7OnLoadHook/types/models/spt/server/ILocaleBase.d.ts @@ -2,4 +2,5 @@ export interface ILocaleBase { global: Record>; menu: Record; languages: Record; + server: Record>; } diff --git a/TypeScript/7OnLoadHook/types/servers/HttpServer.d.ts b/TypeScript/7OnLoadHook/types/servers/HttpServer.d.ts index 80c1d48..97e0705 100644 --- a/TypeScript/7OnLoadHook/types/servers/HttpServer.d.ts +++ b/TypeScript/7OnLoadHook/types/servers/HttpServer.d.ts @@ -18,9 +18,12 @@ export declare class HttpServer { protected configServer: ConfigServer; protected applicationContext: ApplicationContext; protected webSocketServer: WebSocketServer; - constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); protected httpConfig: IHttpConfig; - getCookies(req: http.IncomingMessage): any; - handleRequest(req: IncomingMessage, resp: ServerResponse): void; + constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); + /** + * Handle server loading event + */ load(): void; + protected handleRequest(req: IncomingMessage, resp: ServerResponse): void; + protected getCookies(req: http.IncomingMessage): Record; } diff --git a/TypeScript/8OnUpdateHook/types/callbacks/GameCallbacks.d.ts b/TypeScript/8OnUpdateHook/types/callbacks/GameCallbacks.d.ts index 30cf074..a1ce037 100644 --- a/TypeScript/8OnUpdateHook/types/callbacks/GameCallbacks.d.ts +++ b/TypeScript/8OnUpdateHook/types/callbacks/GameCallbacks.d.ts @@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails"; import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData"; import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; import { INullResponseData } from "../models/eft/httpResponse/INullResponseData"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { Watermark } from "../utils/Watermark"; declare class GameCallbacks { protected httpResponse: HttpResponseUtil; protected watermark: Watermark; + protected saveServer: SaveServer; protected gameController: GameController; - constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController); + constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController); /** * Handle client/game/version/validate * @returns INullResponseData @@ -30,6 +32,7 @@ declare class GameCallbacks { gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; /** * Handle client/game/logout + * Save profiles on game close * @returns IGameLogoutResponseData */ gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; diff --git a/TypeScript/8OnUpdateHook/types/callbacks/SaveCallbacks.d.ts b/TypeScript/8OnUpdateHook/types/callbacks/SaveCallbacks.d.ts index 93ffd96..1997f46 100644 --- a/TypeScript/8OnUpdateHook/types/callbacks/SaveCallbacks.d.ts +++ b/TypeScript/8OnUpdateHook/types/callbacks/SaveCallbacks.d.ts @@ -1,9 +1,13 @@ import { OnLoad } from "../di/OnLoad"; import { OnUpdate } from "../di/OnUpdate"; +import { ICoreConfig } from "../models/spt/config/ICoreConfig"; +import { ConfigServer } from "../servers/ConfigServer"; import { SaveServer } from "../servers/SaveServer"; export declare class SaveCallbacks implements OnLoad, OnUpdate { protected saveServer: SaveServer; - constructor(saveServer: SaveServer); + protected configServer: ConfigServer; + protected coreConfig: ICoreConfig; + constructor(saveServer: SaveServer, configServer: ConfigServer); onLoad(): Promise; getRoute(): string; onUpdate(secondsSinceLastRun: number): Promise; diff --git a/TypeScript/8OnUpdateHook/types/models/spt/config/ICoreConfig.d.ts b/TypeScript/8OnUpdateHook/types/models/spt/config/ICoreConfig.d.ts index 27903e6..c37f81f 100644 --- a/TypeScript/8OnUpdateHook/types/models/spt/config/ICoreConfig.d.ts +++ b/TypeScript/8OnUpdateHook/types/models/spt/config/ICoreConfig.d.ts @@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig { projectName: string; compatibleTarkovVersion: string; serverName: string; + profileSaveIntervalSeconds: number; commit: string; } diff --git a/TypeScript/8OnUpdateHook/types/models/spt/server/ILocaleBase.d.ts b/TypeScript/8OnUpdateHook/types/models/spt/server/ILocaleBase.d.ts index 3cdaf6f..3004cb8 100644 --- a/TypeScript/8OnUpdateHook/types/models/spt/server/ILocaleBase.d.ts +++ b/TypeScript/8OnUpdateHook/types/models/spt/server/ILocaleBase.d.ts @@ -2,4 +2,5 @@ export interface ILocaleBase { global: Record>; menu: Record; languages: Record; + server: Record>; } diff --git a/TypeScript/8OnUpdateHook/types/servers/HttpServer.d.ts b/TypeScript/8OnUpdateHook/types/servers/HttpServer.d.ts index 80c1d48..97e0705 100644 --- a/TypeScript/8OnUpdateHook/types/servers/HttpServer.d.ts +++ b/TypeScript/8OnUpdateHook/types/servers/HttpServer.d.ts @@ -18,9 +18,12 @@ export declare class HttpServer { protected configServer: ConfigServer; protected applicationContext: ApplicationContext; protected webSocketServer: WebSocketServer; - constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); protected httpConfig: IHttpConfig; - getCookies(req: http.IncomingMessage): any; - handleRequest(req: IncomingMessage, resp: ServerResponse): void; + constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); + /** + * Handle server loading event + */ load(): void; + protected handleRequest(req: IncomingMessage, resp: ServerResponse): void; + protected getCookies(req: http.IncomingMessage): Record; } diff --git a/TypeScript/9RouterHooks/types/callbacks/GameCallbacks.d.ts b/TypeScript/9RouterHooks/types/callbacks/GameCallbacks.d.ts index 30cf074..a1ce037 100644 --- a/TypeScript/9RouterHooks/types/callbacks/GameCallbacks.d.ts +++ b/TypeScript/9RouterHooks/types/callbacks/GameCallbacks.d.ts @@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails"; import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData"; import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; import { INullResponseData } from "../models/eft/httpResponse/INullResponseData"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { Watermark } from "../utils/Watermark"; declare class GameCallbacks { protected httpResponse: HttpResponseUtil; protected watermark: Watermark; + protected saveServer: SaveServer; protected gameController: GameController; - constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController); + constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController); /** * Handle client/game/version/validate * @returns INullResponseData @@ -30,6 +32,7 @@ declare class GameCallbacks { gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; /** * Handle client/game/logout + * Save profiles on game close * @returns IGameLogoutResponseData */ gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData; diff --git a/TypeScript/9RouterHooks/types/callbacks/SaveCallbacks.d.ts b/TypeScript/9RouterHooks/types/callbacks/SaveCallbacks.d.ts index 93ffd96..1997f46 100644 --- a/TypeScript/9RouterHooks/types/callbacks/SaveCallbacks.d.ts +++ b/TypeScript/9RouterHooks/types/callbacks/SaveCallbacks.d.ts @@ -1,9 +1,13 @@ import { OnLoad } from "../di/OnLoad"; import { OnUpdate } from "../di/OnUpdate"; +import { ICoreConfig } from "../models/spt/config/ICoreConfig"; +import { ConfigServer } from "../servers/ConfigServer"; import { SaveServer } from "../servers/SaveServer"; export declare class SaveCallbacks implements OnLoad, OnUpdate { protected saveServer: SaveServer; - constructor(saveServer: SaveServer); + protected configServer: ConfigServer; + protected coreConfig: ICoreConfig; + constructor(saveServer: SaveServer, configServer: ConfigServer); onLoad(): Promise; getRoute(): string; onUpdate(secondsSinceLastRun: number): Promise; diff --git a/TypeScript/9RouterHooks/types/models/spt/config/ICoreConfig.d.ts b/TypeScript/9RouterHooks/types/models/spt/config/ICoreConfig.d.ts index 27903e6..c37f81f 100644 --- a/TypeScript/9RouterHooks/types/models/spt/config/ICoreConfig.d.ts +++ b/TypeScript/9RouterHooks/types/models/spt/config/ICoreConfig.d.ts @@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig { projectName: string; compatibleTarkovVersion: string; serverName: string; + profileSaveIntervalSeconds: number; commit: string; } diff --git a/TypeScript/9RouterHooks/types/models/spt/server/ILocaleBase.d.ts b/TypeScript/9RouterHooks/types/models/spt/server/ILocaleBase.d.ts index 3cdaf6f..3004cb8 100644 --- a/TypeScript/9RouterHooks/types/models/spt/server/ILocaleBase.d.ts +++ b/TypeScript/9RouterHooks/types/models/spt/server/ILocaleBase.d.ts @@ -2,4 +2,5 @@ export interface ILocaleBase { global: Record>; menu: Record; languages: Record; + server: Record>; } diff --git a/TypeScript/9RouterHooks/types/servers/HttpServer.d.ts b/TypeScript/9RouterHooks/types/servers/HttpServer.d.ts index 80c1d48..97e0705 100644 --- a/TypeScript/9RouterHooks/types/servers/HttpServer.d.ts +++ b/TypeScript/9RouterHooks/types/servers/HttpServer.d.ts @@ -18,9 +18,12 @@ export declare class HttpServer { protected configServer: ConfigServer; protected applicationContext: ApplicationContext; protected webSocketServer: WebSocketServer; - constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); protected httpConfig: IHttpConfig; - getCookies(req: http.IncomingMessage): any; - handleRequest(req: IncomingMessage, resp: ServerResponse): void; + constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer); + /** + * Handle server loading event + */ load(): void; + protected handleRequest(req: IncomingMessage, resp: ServerResponse): void; + protected getCookies(req: http.IncomingMessage): Record; }