Skip to content

Instantly share code, notes, and snippets.

@raucao
Created October 24, 2017 19:11
Show Gist options
  • Save raucao/9f3f5fc0c21b9d92db0d2bffad9a4c29 to your computer and use it in GitHub Desktop.
Save raucao/9f3f5fc0c21b9d92db0d2bffad9a4c29 to your computer and use it in GitHub Desktop.
const RemoteStorage = require('remotestoragejs')
const remoteStorage = new RemoteStorage({logging: true})
remoteStorage.on('ready', () => console.log('READY'))
remoteStorage.on('connected', () => console.log('CONNECTED'))
remoteStorage.on('not-connected', () => console.log('NOT CONNECTED'))
setTimeout(() => { console.log('good bye') }, 3000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment