Technical details on how EdCon operates offline on your school local area network (LAN) and automatically syncs with the cloud.
EdCon's architecture is offline-first by design. The entire suite of application features (from attendance and assignment grading to student chats) is hosted on a local school server. Devices inside the school connect to this local server over the local Wi-Fi network or Ethernet LAN.
EdCon registers a robust, event-driven Service Worker (service-worker.js) on the student and teacher browsers. This guarantees application availability even if the local server momentarily drops offline.
The Service Worker caches structural HTML pages, stylesheets, images, and Javascript modules during the initial page load. Subsequent loads fetch directly from the device's cache, bypassing network requests completely.
If a network connection fails, the Service Worker intercepts the request and serves cached templates. If a page has not been cached, it renders the elegant offline fallback page (offline.html) prompting the user to check their LAN connection.
To support offline transactions (such as writing chat messages, submitting files, or completing quizzes during network interruptions), EdCon utilizes an IndexedDB cache queue processor.
sync-manager.js) serializes request payloads—including converting uploaded files and Blobs into storable ArrayBuffers—and writes them to the IndexedDB sync_queue store as pending items.online connectivity state. As soon as the network returns, the Sync Core (sync-core.js) processes the queue sequentially, submitting queued requests in chronological order.To optimize local server storage and protect against server hardware failures, EdCon integrates a background media synchronization protocol.