Files
dealplustech/node_modules/@libsql/isomorphic-ws/web.mjs
Kunthawat 77ac4d2d05 feat: Upgrade to Astro with full PDPA compliance
PDPA Features:
 Cookie consent banner
 Consent logging API
 Admin dashboard
 Privacy Policy
 Terms & Conditions

Technical:
 Astro 5.x + Tailwind v4
 Docker on port 80
 SQLite database
 15 pages built

Ready for Easypanel deployment.
2026-03-12 10:01:04 +07:00

12 lines
355 B
JavaScript

let _WebSocket;
if (typeof WebSocket !== "undefined") {
_WebSocket = WebSocket;
} else if (typeof global !== "undefined") {
_WebSocket = global.WebSocket;
} else if (typeof window !== "undefined") {
_WebSocket = window.WebSocket;
} else if (typeof self !== "undefined") {
_WebSocket = self.WebSocket;
}
export { _WebSocket as WebSocket };