A WebSocket Real-Time Communication (RTC) API framework for building reactive front-end and back-end applications. Current stable version 1.15.16, released regularly. Key differentiator: allows writing SQL in frontend code that automatically syncs across all clients upon data changes; also provides real-time server props for generic data synchronization. Agnostic of framework, build tool, server library, and SQL database. Requires Node.js >= 16 LTS. Ships TypeScript definitions.
npm install socioNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up a Socio server and client, establishes WebSocket connection, executes a parameterized SQL query.
Use correct subpath imports: for server 'socio/dist/core-server', for client 'socio/dist/core-client', for security 'socio/dist/secure'.
Ensure the same 'secure_private_key' is used in both server-side SocioSecurity instance and the Vite plugin during build.
Always await .Connect() before calling query/subscribe methods. Handle connection errors with try-catch.
Use dynamic import() or configure your project to use ESM. Avoid CommonJS require.
Ensure QueryWrap is async and returns the expected data structure (e.g., array of rows).
Add "type": "module" to your package.json or use .mjs extension for import files.
Use correct import: import { SocioClient } from 'socio/dist/core-client';Use ESM import/export exclusively. Remove module.exports and use export default / export.
Switch to dynamic import() or convert your project to ESM. Use import syntax.
No dependency data recorded yet.