Skip to content

allain/json-patch-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#JSON-PATCH API client

Basic Usage

Assuming you have installed json-patch-api middleware on th server, you use the client at follows:

var JsonPatchApiClient = require('json-patch-api-client');

// Assumes /socket.io/socket.io.js has been included to provide
// the global io definition
var store1 = new JsonPatchApiClient(io, 'store1');

// change event emitted on every change and it contains the entire store state
store1.on('change', function(doc) {
  console.log(doc);
});

About

A client built for consumption of json-patch-api endpoints.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published