src/whatsprot.class.php
public function sendPong($msgid)
    {
        $messageNode = new ProtocolNode('iq',
            [
                'to'   => Constants::WHATSAPP_SERVER,
                'id'   => $msgid,
                'type' => 'result',
            ], null, '');

        $this->sendNode($messageNode);
        $this->eventManager()->fire('onSendPong',
            [
                $this->phoneNumber,
                $msgid,
            ]);
    }
public function sendPong($msgid)
    {
        $messageNode = new ProtocolNode('iq',
            [
                'to'   => Constants::WHATSAPP_SERVER,
                'id'   => $msgid,
                'type' => 'result',
            ], null, '');

        $this->sendNode($messageNode);
        $this->eventManager()->fire('onSendPong',
            [
                $this->phoneNumber,
                $msgid,
            ]);
    }
public function sendPong ( $ msgid ) { $ messageNode = new ProtocolNode ( 'iq' , [ 'to' => Constants :: WHATSAPP_SERVER , 'id' => $ msgid , 'type' => 'result' , ] , null , '' ) ; $ this -> sendNode ( $ messageNode ) ; $ this -> eventManager ( ) -> fire ( 'onSendPong' , [ $ this -> phoneNumber , $ msgid , ] ) ; }
Send a pong to the WhatsApp server. I'm alive!

@param string $msgid The id of the message.
Send a pong to the WhatsApp server . I m alive!