src/Net/XMPP/MessageSender.php
public function sendMessageTo( $message, $receiver )
	{
		if( is_string( $receiver ) )
			$receiver	= new Net_XMPP_JID( $receiver );
		if( !$this->xmpp )
			throw new RuntimeException( 'Not connected to Server.' );
		$this->xmpp->message( $receiver->get(), $message );
	}
public function sendMessageTo( $message, $receiver )
	{
		if( is_string( $receiver ) )
			$receiver	= new Net_XMPP_JID( $receiver );
		if( !$this->xmpp )
			throw new RuntimeException( 'Not connected to Server.' );
		$this->xmpp->message( $receiver->get(), $message );
	}
public function sendMessageTo ( $ message , $ receiver ) { if ( is_string ( $ receiver ) ) $ receiver = new Net_XMPP_JID ( $ receiver ) ; if ( ! $ this -> xmpp ) throw new RuntimeException ( 'Not connected to Server.' ) ; $ this -> xmpp -> message ( $ receiver -> get ( ) , $ message ) ; }
Sends Message to a Receiver.
@access		public
@param		string		$message		Message to send to Receiver
@param		string		$receiver		JID of Receiver
@return		void
@throws		RuntimeException			if XMPP connection is not established
Sends Message to a Receiver .