public function onMessageReceived(Wildfire_Message $message)
 {
     echo '<pre>';
     var_dump($message->getReceiver());
     var_dump(json_decode($message->getMeta(), true));
     var_dump(json_decode($message->getData(), true));
     echo '</pre>';
 }
Ejemplo n.º 2
0
 public function dispatch(Wildfire_Message $message)
 {
     if (!$message->getProtocol()) {
         $message->setProtocol($this->protocol);
     }
     if (!$message->getSender()) {
         $message->setSender($this->sender);
     }
     if (!$message->getReceiver()) {
         $message->setReceiver($this->receiver);
     }
     $this->channel->enqueueOutgoing($message);
 }