diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 16d5828..64cfcd0 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@apiglobal/typedserver', - version: '2.0.49', + version: '2.0.50', description: 'easy serving of static files' } diff --git a/ts/typedserver.classes.typedserver.ts b/ts/typedserver.classes.typedserver.ts index cc8da7d..0edace2 100644 --- a/ts/typedserver.classes.typedserver.ts +++ b/ts/typedserver.classes.typedserver.ts @@ -192,7 +192,7 @@ export class TypedServer { */ public async reload() { this.lastReload = Date.now(); - for (const connectionArg of await this.typedsocket.findAllTargetConnections(async () => true)) { + for (const connectionArg of await this.typedsocket.findAllTargetConnectionsByTag('typedserver_frontend') { const pushTime = this.typedsocket.createTypedRequest( 'pushLatestServerChangeTime', diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index 16d5828..64cfcd0 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@apiglobal/typedserver', - version: '2.0.49', + version: '2.0.50', description: 'easy serving of static files' } diff --git a/ts_web/index.ts b/ts_web/index.ts index 92c08db..0c797c6 100644 --- a/ts_web/index.ts +++ b/ts_web/index.ts @@ -98,6 +98,7 @@ export class ReloadChecker { this.typedrouter, plugins.typedsocket.TypedSocket.useWindowLocationOriginUrl() ); + this.typedsocket.addTag('typedserver_frontend', {}); this.typedsocket.eventSubject.subscribe(async eventArg => { console.log(`typedsocket event subscription: ${eventArg}`); if (eventArg === 'disconnected' || eventArg === 'disconnecting' || eventArg === 'timedOut') {