From 910b9a495e7178cf69329eebf7e0ff7da35eb639 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Tue, 4 Apr 2023 17:14:54 +0200 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/typedserver.classes.typedserver.ts | 2 +- ts_web/00_commitinfo_data.ts | 2 +- ts_web/index.ts | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) 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') {