DOI : https://doi.org/10.5281/zenodo.19950223
- Open Access

- Authors : Mr C Vikas, Ratnala Sumith Kumar, Koti Krishna Chaitnya, Nalam Vignesh, Gade Sai Shankar
- Paper ID : IJERTV15IS031411
- Volume & Issue : Volume 15, Issue 03 , March – 2026
- Published (First Online): 01-05-2026
- ISSN (Online) : 2278-0181
- Publisher Name : IJERT
- License:
This work is licensed under a Creative Commons Attribution 4.0 International License
Ofline-Orbit: A Resilient, Ofline-First Architecture for Local Area WebRTC Communication
Mr. C Vikas, Ratnala Sumith Kumar, Koti Krishna Chaitnya, Nalam Vignesh, and Gade Sai Shankar
Department of Information Technology Keshav Memorial Institute of Technology Telangana, India
AbstractReal-time digital communication forms the backbone of modern collaborative ecosystems, yet conventional applications fail critically during internet outages or transient local network disconnections. Standard stateless WebSocket architectures in-stantly drop payloads when the transmission layer is interrupted. This study introduces Ofine-Orbit, a Delay-Tolerant Network (DTN) architecture engineered to provide resilient, ofine-rst communication via Local Area Networks (LAN). The system integrates a Progressive Web App (PWA) frontend with an IndexedDB-backed store-and-forward queue (Dexie.js) to guar-antee zero data loss during network failures. Furthermore, the platform establishes decentralized peer-to-peer (P2P) audio and video calling utilizing WebRTC, bypassing the need for cloud-based media relays. Empirical results indicate that the hybrid asynchronous syncing mechanism drastically improves message retention in intermittent environments and ensures an automated microsecond state-recovery upon network reconnection.
Index TermsDelay-Tolerant Networks, Progressive Web Apps, WebRTC, Store-and-Forward, IndexedDB, Ofine-First
-
Introduction
Digital communication platforms have signicantly trans-formed interpersonal connectivity. Platforms such as What-sApp and Slack provide robust messaging ecosystems where users communicate primarily through cloud-hosted centralized servers.
However, these internet-dependent systems are poorly suited for disaster scenarios, remote enterprises, or localized environ-ments experiencing intermittent connectivity. When an external network drops, standard chat applications render their user interfaces inaccessible and discard outgoing messages, causing severe communication breakdowns.
These legacy methods lack edge-resilience. Centralized architectures operate on the assumption of a continuous, stable connection, failing to account for the highly transient nature of mobile and localized edge networks.
With the advent of Progressive Web Apps (PWA), local browser storage APIs (IndexedDB), and Web Real-Time Com-munication (WebRTC), digital platforms possess the potential to operate entirely autonomously on local networks without requiring external internet routing.
This paper introduces Ofine-Orbit, a resilient digital plat-form designed specically to survive network interruptions through ofine-rst caching, automated store-and-forward queuing, and direct P2P media routing.
The contributions of this work include:
-
A Progressive Web App (PWA) implementation enabling zero-connectivity application boot and UI rendering
-
A robust store-and-forward asynchronous message queue utilizing Dexie.js (IndexedDB)
-
WebRTC-based video and audio calling utilizing Local Area Network signaling for peer discovery
-
An automated Socket.io reconnection algorithm that synchronizes ofine states without data collision
-
-
Related Work
Professional and social communication systems rely heavily on constant polling or continuous WebSocket streams. When a connection drops, these platforms traditionally block user input. Emerging research in Delay-Tolerant Networks (DTN) has highlighted the necessity of localized caching mechanisms [1], [2]. While mobile applications leverage SQLite for local persistence, web-based architectures have historically struggled with ofine capabilities. Recent advancements in Service Workers have enabled web applications to intercept network requests, yet complex multi-user chat state synchronization remains a challenge [3], [4]. Existing literature emphasizes the need for decentralized media routing combined with robust local conict-resolution algorithms in modern browser environments [5].
A. Research Gap
Despite the proliferation of digital communication services, the following structural deciencies persist in the context of delay-tolerant web applications:
-
UI Dependency on Connectivity: Conventional web applications require an initial server handshake to load the Document Object Model (DOM), rendering them useless during total outages.
-
Volatile Message States: A lack of client-side transac-tional databases forces applications to drop outgoing user payloads the moment a WebSocket disconnects.
-
Media Routing Bottlenecks: Cloud-dependent WebRTC signaling requires external STUN/TURN servers, which fail completely when the global internet is inaccessible.
-
Synchronization Conicts: Absence of structured asyn-chronous queuing leads to race conditions when a client attempts to dump ofine messages to the server upon reconnection.
Ofine-Orbit is designed to address these gaps by combin-ing a Vite-powered PWA, Dexie.js IndexedDB queues, and localized Socket.io signaling.
-
-
Methodology
-
Proposed System
The Ofine-Orbit platform provides the following resilient functionalities:
-
Ofine-capable UI through Service Worker caching (PWA)
-
Local persistence of user sessions and chat threads
-
Store-and-forward queuing for unsynced messages via Dexie.js
-
Automated background synchronization upon LAN recon-nection
-
Peer-to-Peer (P2P) WebRTC audio and video calling restricted to local subnets
-
Localized le sharing via optimized Multer routes
-
Real-time user presence tracking (Online/Ofine statuses)
-
-
System Architecture
The system follows an edge-resilient architecture combining a Service Worker proxy, local persistent storage, and a localized Node.js microservice. The architecture is shown in Fig. 1.
-
Store-and-Forward Message Queueing
To guarantee zero data loss during network discon-nections, the platform implements a local asynchronous database using Dexie.js. The primary schema includes an unsyncedMessages store dened by a composite key of (id, roomId, tempId).
The workow for an ofine transmission is as follows:
-
User submits a message. The client validates the Socket.io connection state.
-
If connected == false, the payload is appended to the Dexie.js unsyncedMessages table with a generated tempId.
-
The UI optimistically renders the message with a pend-ing visual indicator.
-
A network listener monitors the browsers navigator.onLine and Socket.io reconnection events.
-
Upon successful reconnection, the queue is iterated, ushed to the server, and cleared locally.
-
-
Automated Synchronization Algorithm
We propose a state-recovery algorithm to prevent race conditions and duplicate entries when a client reconnects to the local server after an extended ofine period.
-
Progressive Web App (PWA) Integration
Standard web applications fail to load if the DNS cannot resolve the server. By integrating the vite-plugin-pwa, Ofine-Orbit installs a Service Worker on the users device.
The Service Worker employs a Cache-First, Network-Fallback strategy. HTML, CSS, JavaScript bundles, and core SVGs are cached locally. When the user opens the application
Algorithm 1 Ofine Queue Auto-Synchronization
1: Event: socket.on(connect)
2: Input: Dexie DB D, Active Socket S
3: Queue D.unsyncedMessages.toArray()
4: if Queue.length == 0 then
5: return
6: end if
7: for each msg M in Queue do
8: Ack await emitToSocket(S, M )
9: if Ack.status == 200 then
10: D.unsyncedMessages.delete(M.id)
11: updateUIStatus(M.tempId, Sent)
12: else
13: logError(Sync failed, retain in queue)
14: end if
15: end for
without a local router connection, the Service Worker intercepts the HTTP requests and serves the les directly from the browser cache, resulting in a near-instantaneous load time.
-
Local Area WebRTC Signaling
WebRTC fundamentally requires a signaling mechanism to exchange Session Description Protocol (SDP) and Interactive Connectivity Establishment (ICE) candidates. In traditional systems, this routes through the global internet.
Because Ofine-Orbits Node.js server operates on the Local Area Network (e.g., 192.168.1.x), clients connected to the same Wi-Fi router exchange signaling data entirely locally. The RTT (Round Trip Time) for signaling drops to sub-10 milliseconds, and the resulting WebRTC media track is established without traversing external NAT gateways, saving external bandwidth entirely.
-
-
Results and Discussion
-
Feature Comparison
To highlight the advantages of the proposed delay-tolerant network architecture, Table I presents a comparison of re-silience metrics across different communication paradigms. Ofine-Orbit eliminates the dependency on continuous internet connectivity while actively preventing data loss through its queuing mechanism.
-
Implementation
The Ofine-Orbit prototype was developed utilizing the following stack:
-
Presentation Layer: React.js (via Vite) congured as a PWA with aggressive caching manifests.
-
Ofine Storage: Dexie.js providing a robust, promise-based wrapper over the native browser IndexedDB API.
-
Logic & Transport: Node.js and Express services, uti-lizing Socket.io for duplex communication and WebRTC simple-peer for local media tracks.
-
Persistence Layer: MongoDB via Mongoose for global
chat histories.
auto-ush
Node/Express Edge Server (LAN Signaling & Sync)
-
-
IndexedDB (Dexie.js) (Unsynced Message Queue)
Socket.io Client (Event Emitter)
React PWA & Service Worker (Ofine UI Cache)
WebRTC (P2P Media)
Local SDP
if online
read/write WS
MongoDB Database (Global Persistence)
Fig. 1. Ofine-First Architecture integrating PWA Service Workers, IndexedDB, and LAN WebRTC Signaling.
TABLE I
Resilience comparison with standard protocols
|
Feature |
Legacy HTTP Chat |
Cloud WebRTC |
Ofine-Orbit |
|
Internet Required |
Yes |
Yes |
No (LAN Only) |
|
Ofine UI Access |
No |
No |
Yes (PWA) |
|
Data Loss on Drop |
Yes |
Yes |
No (IndexedDB) |
|
Signaling Topology |
Central |
Cloud STUN |
Edge Socket |
|
Sync Conicts |
High |
High |
Handled |
TABLE II
|
Parameter |
Value |
|
Simulated Clients |
500 |
|
Concurrent WebSockets |
500 |
|
Concurrent P2P Calls |
50 |
|
Messages per Second (Peak) |
200 |
|
Test Duration |
14 days |
Experimental dataset configuration
-
Application Boot Time (Zero Connectivity): Interpreta-tion: A standard Web App completely fails to load without an internet connection (0 sec functionality). In contrast, the PWA Service Worker allows Ofine-Orbit to boot the fully cached UI in 400ms, outperforming even the cold boot of native mobile applications.
Total Sync Time (ms)
600
-
Experimental Load Conguration
-
Performance Evaluation
We evaluated the prototype focusing on its DTN character-istics: UI boot time under no network, ofine message queue limits, and automated sync latency.
0.6
0.4
0
Boot Time (seconds)
0.8
0.6
400
200
0
0 20 40 60 80 100
Number of Queued Ofine Messages
0.4
0.2
0
Web App PWA Native App
Fig. 3. Time required to ush and acknowledge the Dexie.js queue upon reconnection.
-
-
Queue Synchronization Latency: Interpretation: The asynchronous Promise.all mapping of the Dexie array allows the system to synchronize 100 locally cached messages in approximately 550ms once the socket reestablishes the connection.
-
Scalability and Storage Considerations
The IndexedDB specication permits browsers to allocate
Fig. 2. Application load times without active router connection (0 indicates failure to load).
signicant storage quotas (often up to 50% of free disk space) to local domains. Consequently, the unsyncedMessages Dexie schema can comfortably cache tens of thousands of text
payloads during an extended multi-day local server outage without compromising client device performance.
-
Security and Privacy
Security design in an ofine-rst architecture requires specialized constraints:
-
JWT tokens are cached securely in memory and validated instantly upon reconnection.
-
WebRTC connections utilizing LAN signaling still employ built-in DTLS and SRTP encryption for media streams, preventing local subnet packet snifng.
-
IndexedDB data is bound to the domain origin, sandboxing it from cross-site scripting (XSS) extraction by external sites.
-
-
Discussion
The prototype empirically demonstrates that integrating a PWA Service Worker and a Dexie.js IndexedDB queue fundamentally solves the fragility of real-time web applications. By caching the UI and storing payloads locally, users perceive the system as continuously operational, masking the underlying transient network failures. Furthermore, containing WebRTC signaling entirely to the local server removes the applications dependency on the global internet.
-
Conclusion and Future Enhancements
-
Limitations
If a user clears their browser cache before reconnecting to the server, the Dexie.js queue is purged, resulting in permanent data loss. Cross-browser disparities in IndexedDB quota limits can affect storage thresholds on restrictive mobile operating systems (e.g., iOS Safari).
-
Future Work
Future work will focus on implementing Conict-free Replicated Data Types (CRDTs) to allow ofine editing and deletion of queued messages. Furthermore, Integration of End-to-End Encryption (E2EE) utilizing the Web Crypto API will be implemented to encrypt payloads before they are pushed to the local Dexie queue.
-
Conclusion
This paper presented Ofine-Orbit, a highly resilient Delay-Tolerant Network (DTN) platform tailored for local area real-time communication. By replacing the fragile stateless WebSocket paradigm with an ofine-rst architecture utilizing Progressive Web Apps and Dexie.js IndexedDB, the system ensures zero data loss during network outages. The architecture proves that web technologies can match native edge-computing resilience, paving the way for reliable digital communication in disaster scenarios and isolated localized networks.
References
-
IETF, Web Real-Time Communication (WebRTC): Media Transport and Use of RTP, RFC 8834, 2021.
-
S. Kumar, Scalable Real-Time Event Driven Architectures using WebSockets, 2023 IEEE International Conference on Cloud Computing and Networking, 2023, pp. 450-455.
-
W3C, Indexed Database API 3.0, World Wide Web Consortium, 2023. [Online]. Available: https://www.w3.org/TR/IndexedDB/
-
Mozilla Developer Network (MDN), Service Worker API and Ofine Storage Strategies, 2024. [Online]. Available: https://developer.mozilla. org/
-
Dexie.js Documentation, A Minimalist Wrapper for IndexedDB, 2024. [Online]. Available: https://dexie.org/
