Client-side JavaScript library for real-time MySQL database synchronization via WebSockets/Socket.IO. Version 0.4.1 (last release: ~2016). Works with the mysql-live server package to enable reactive collections, auto-updating queries, and latency compensation similar to Meteor. Ships TypeScript definitions. Suitable for building live-updating web apps with MySQL backends. Note: project appears unmaintained since 2016.
npm install mysql-live-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize a mysql-live-client instance, subscribe to a server publication, and listen for collection updates.
Consider alternatives like Meteor, Socket.IO with custom sync, or Hasura for real-time MySQL.
Ensure client and server use compatible Socket.IO versions (both 1.x or both 2.x via custom build).
Supplement with custom type declarations or use @ts-ignore as needed.
Use npm import instead of the compat script tag to avoid duplicates.
Use `import LiveClient from 'mysql-live-client'` instead of `import { LiveClient } from 'mysql-live-client'`.Use `const live = new LiveClient(options)` instead of `const live = LiveClient(options)`.
Ensure the server has published the collection with `.publish()` or check the publication name spelling.