Skip to content

Latest commit

 

History

History
executable file
·
39 lines (27 loc) · 1.23 KB

File metadata and controls

executable file
·
39 lines (27 loc) · 1.23 KB

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.