public function onTweet(StreamMessageEvent $event)
 {
     $this->producer->publish($event->getMessage(), $this->routingKey);
 }
 /**
  * @param StreamMessageEvent $event
  */
 public function onWarning(StreamMessageEvent $event)
 {
     $context = current(json_decode($event->getMessage(), true));
     $this->logger->addInfo('warning', $context);
 }