Skip to content

coolwind0202/file_sync_ws_and_cache_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File sync between server & client

A feature enables file sync between server and client. When add / remove assets/ directory files, the change will be notificated to client through WebSocket connection. On the client app, interpreting the notification, the main.ts logics fetch new resources and remove old caches.

warning

This implementation is incomplete. It can understand add / remove files, but not modify files. If you want to execute it correctly, you need to add a unique version hash to distributed files.

About

PoC about file sync with websocket and Cache API.

Topics

Resources

Stars

Watchers

Forks