spreadjs-server

0.0.1 • Public • Published

Spread.js Server

djso

Get started

Install:

npm i spreadjs-server

Usage

In order to sync your local data structure, spin up the built-in socket server. The internal communication is done via web sockets.

Start the socket server

node index.js

Use the client

// Initialize. All instances share the same websocket connection
let store = new Store('ws://your_server');

// Set any properties on the storage object
store.config = {};
store.config.name = "Peter";
store.config.array = ["one"];
store.config.array.push("two");

// Delete properties
delete store.config.array;

Readme

Keywords

none

Package Sidebar

Install

npm i spreadjs-server

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

14 kB

Total Files

5

Last publish

Collaborators

  • marcoboelling