Skip to content

collegepulse/feathers-offline-realtime-immutable

 
 

Repository files navigation

feathers-offline-realtime-immutable

Build Status Coverage Status

Offline-first realtime replication with optimistic updates.

Installation

npm install feathers-offline-realtime-immutable --save

Usage

const Realtime = require('feathers-offline-realtime-immutable');
const feathersClient = feathers()...;
const messages = feathersClient.service('/messages');

const messagesRealtime = new Realtime(messages, { subscriber: (records, last) => {
  /**
   * Store the records in your state manager. For example, if integrating with redux:
   *
   * store.dispatch(services.messages.store({ connected: messagesRealtime.connected, last, records }));
   *
   */
}});

Documentation

You can read the docs here.

License

Copyright (c) 2017

Licensed under the MIT license.

About

Offline-first realtime replication, with optimistic updates while connected.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%