0.0.3 • Published 6 years ago

instant-sync v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Instant Sync

Data synchronization with thousands of connected users in a instant

  • Realtime synchronization with websockets
  • Pub/Sub like messaging
  • Extremely simple and ease to use

Install

You can get it on npm.

npm install instant-sync --save

or you can download a copy from dist

Setup

If you are using the single file, include the script located on the dist folder

<script src="instant.js"></script>

Or if you are using some web framework import/require it

import { InstantSync } from 'instant-sync'
// or
const InstantSync = require('instant-sync')

Usage

const instant = new InstantSync({
  apiKey: 'YOUR API-KEY'
});

instant.listen('event-name', function(res) {
    console.log('update: ', res);
});

instant.send('event-name', 'Hello, World!');

You can check out the examples directory to get a feel for what you can do with it

OBS

This library/service doesn't work yet