feat(serviceworker): Add server-driven service worker cache invalidation and TypedSocket integration

This commit is contained in:
2025-12-04 11:46:55 +00:00
parent 98eae1e79a
commit 031eb78288
7 changed files with 107 additions and 5 deletions

View File

@@ -195,6 +195,24 @@ export interface IConnectionResult {
// Speedtest interfaces
// ===============
/**
* Cache invalidation request from server to service worker
*/
export interface IRequest_Serviceworker_CacheInvalidate
extends plugins.typedrequestInterfaces.implementsTR<
plugins.typedrequestInterfaces.ITypedRequest,
IRequest_Serviceworker_CacheInvalidate
> {
method: 'serviceworker_cacheInvalidate';
request: {
reason: string;
timestamp: number;
};
response: {
success: boolean;
};
}
/**
* Speedtest request between service worker and backend
*/