pubnub-time
Syncronize local time with PubNub server time.
Installation
$ npm install pubnub-time
Usage
var PubNubTime =// To sync local time with PubNub server timePubNubTime// To calculate current server timevar serverTime = PubNubTime
Syncronize local time with PubNub server time.
$ npm install pubnub-time
var PubNubTime =// To sync local time with PubNub server timePubNubTime// To calculate current server timevar serverTime = PubNubTime
npm i pubnub-time
1
1.0.0
ISC