pubnub-time
v1.0.0
Published
Syncronize local time with PubNub server time
Downloads
2
Readme
pubnub-time
Syncronize local time with PubNub server time.
Installation
$ npm install pubnub-time
Usage
var PubNubTime = require('pubnub-time')
// To sync local time with PubNub server time
PubNubTime.init()
// To calculate current server time
var serverTime = PubNubTime.currentTime()