_sendPing() {
        if (!this.socket) {
            return;
        }
        if (this.pingTimeout) {
            clearTimeout(this.pingTimeout);
            this.pingTimeout = null;
        }
        if (this.pingWaitTimeout) {
            clearTimeout(this.pingWaitTimeout);
            this.pingWaitTimeout = null;
        }
        const pingBuffer = Buffer.from('0000000303000015', 'hex');
        this.socket.write(pingBuffer);
        debug('Send ping');
        this.pingWaitTimeout = setTimeout(() => {
            debug('Ping response overdue, reconnect');
            this.close(true);
        }, (this.options.pingInterval || PH803W_PING_INTERVAL) * 2);
    }
/**
     * Sends out a Ping request and awaits Pong
     *
     * @private
     */
Sends out a Ping request and awaits Pong
@private
Sends out a Ping request and awaits Pong @private
_sendPing() {
        if (!this.socket) {
            return;
        }
        if (this.pingTimeout) {
            clearTimeout(this.pingTimeout);
            this.pingTimeout = null;
        }
        if (this.pingWaitTimeout) {
            clearTimeout(this.pingWaitTimeout);
            this.pingWaitTimeout = null;
        }
        const pingBuffer = Buffer.from('0000000303000015', 'hex');
        this.socket.write(pingBuffer);
        debug('Send ping');
        this.pingWaitTimeout = setTimeout(() => {
            debug('Ping response overdue, reconnect');
            this.close(true);
        }, (this.options.pingInterval || PH803W_PING_INTERVAL) * 2);
    }
_sendPing ( ) { if ( ! this . socket ) { return ; } if ( this . pingTimeout ) { clearTimeout ( this . pingTimeout ) ; this . pingTimeout = null ; } if ( this . pingWaitTimeout ) { clearTimeout ( this . pingWaitTimeout ) ; this . pingWaitTimeout = null ; } const pingBuffer = Buffer . from ( '0000000303000015' , 'hex' ) ; this . socket . write ( pingBuffer ) ; debug ( 'Send ping' ) ; this . pingWaitTimeout = setTimeout ( ( ) => { debug ( 'Ping response overdue, reconnect' ) ; this . close ( true ) ; } , ( this . options . pingInterval || PH803W_PING_INTERVAL ) * 2 ) ; }
Sends out a Ping request and awaits Pong
 @private
Sends out a Ping request and awaits Pong @private