svelte-websocket

JSON →
library 1.0.0 ·javascript
verified Jun 7, 2026

Bootstrapping helpers for attaching WebSocket servers (e.g., Socket.IO, ws) to a SvelteKit application in both development (via Vite plugin) and production (via Node runtime). Current stable version 1.0.0, requires Node >=18 and Vite ^7 || ^8. Unlike manual setups, it provides a unified API to expose the same WebSocket function across environments, handles lifecycle deduplication, and keeps runtime imports Vite-free.