The WSX client library enables real-time communication between your web applications and WSX servers. This guide covers installation, configuration, and basic usage.
// Register service worker for offline supportif ("serviceWorker" in navigator) { navigator.serviceWorker.register("/sw.js").then(() => { // Initialize WSX after service worker is ready new WSX({ url: "ws://localhost:3000/ws", offline: true, // Enable offline queue }); });}