public function sendSimpleMessage($to, $body)
    {

        $message = new \sb\XMPP\Message();

        $message->setTo($to);
        $message->setBody($body);
        $this->sendMessage($message);
    }
public function sendSimpleMessage($to, $body)
    {

        $message = new \sb\XMPP\Message();

        $message->setTo($to);
        $message->setBody($body);
        $this->sendMessage($message);
    }
public function sendSimpleMessage ( $ to , $ body ) { $ message = new \ sb \ XMPP \ Message ( ) ; $ message -> setTo ( $ to ) ; $ message -> setBody ( $ body ) ; $ this -> sendMessage ( $ message ) ; }
Sends simple string based text message

@param string $to The jid to send the message to
@param string $body The text to send
Sends simple string based text message