JSPM

firesync-db-client

0.3.2
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 4
    • Score
      100M100P100Q17838F
    • License ISC

    Node.js client library for interacting with a FireSync Database RealTime backend.

    Package Exports

    • firesync-db-client
    • firesync-db-client/index.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (firesync-db-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    FireSync Node.js DB RealTime Client

    Cliente Node.js para interagir com o backend FireSync Database RealTime.

    Fornece uma API inspirada no Firebase Realtime Database para operações de dados e escuta em tempo real, adaptada para o ambiente Node.js.

    Versão: 0.3.1

    Funcionalidades

    • Conexão segura (WSS) com autenticação JWT.
    • Envio obrigatório do cabeçalho Origin na conexão.
    • API baseada em referências (ref, child).
    • Operações CRUD (set, get, update, remove).
    • Geração de IDs únicos (push).
    • Listeners em tempo real (onValue, off).
    • Objeto DataSnapshot com métodos auxiliares (val, exists, key, ref, child, forEach, exportVal).
    • Validação de chaves em update.
    • Reconexão automática com backoff exponencial.
    • Controle manual de conexão (goOffline, goOnline).
    • Eventos públicos para monitorar estado (on, off).
    • Tratamento de requisição/resposta usando IDs gerados pelo cliente.

    Instalação

    npm install firesync-db-client --save