synko
Synko is a small library that allows you synchronize data objects between server and clients and call remote functions with a very friendly API. Synko is based on the Object Sync Protocol and can be used in conjuntion with SockJS or socket.io as connector to comunicate server and browser.
npm install synko
How to use
Server side:
var synko = servervar myserver = synko;myserver;var controllers = { if req; else req; };
Browser side:
var controllers = {};var server = synko;server ;
You can load synko on the browser as oldschool style
Or with ES6 (webpack and babel):
;
You can use synko with socket.io or SockJS as connector
var server = synko;...
API
For full API documentation visit: synko
Synko is a small library that allows you synchronize data objects between server and clients and call remote functions with a very friendly API. Synko is based on the Object Sync Protocol and can be used in conjuntion with SockJS or socket.io as connector to comunicate server and browser.
npm install synko
How to use
Server side:
var synko = servervar myserver = synko;myserver;var controllers = { if req; else req; };
Browser side:
var controllers = {};var server = synko;server ;
You can load synko on the browser as oldschool style
Or with ES6 (webpack and babel):
;
You can use synko with socket.io or SockJS as connector
var server = synko;...
API
For full API documentation visit: https://objectsyncprotocol.gitbooks.io/synko/content/