src/operator/server/index.js
/**
     * Claculates difference between server and client time.
     *
     * @param {Number|null} serverTime Unix timestampt for the current server
     *   time.
     * @returns {Number}
     */
Claculates difference between server and client time.
@param {Number|null} serverTime Unix timestampt for the current server
time.
@returns {Number}
Claculates difference between server and client time . @param { Number|null } serverTime Unix timestampt for the current server time . @returns { Number }
_getTimeDiff(serverTime) {
        if (!serverTime) {
            return 0;
        }
        return Math.round((new Date()).getTime() / 1000) - serverTime;
    }
_getTimeDiff ( serverTime ) { if ( ! serverTime ) { return 0 ; } return Math . round ( ( new Date ( ) ) . getTime ( ) / 1000 ) - serverTime ; }
Claculates difference between server and client time.
Claculates difference between server and client time .