/**
  * Each message in the site stream tells us which user ID it should be
  * routed to; we'll need that to let the caller know what to do.
  *
  * @param array $data
  */
 function routeMessage(stdClass $data)
 {
     $context = array('source' => 'sitestream', 'for_user' => $data->for_user);
     parent::handleMessage($data->message, $context);
 }
Esempio n. 2
0
 /**
  * Each message in the user stream is just ready to go.
  *
  * @param array $data
  */
 function routeMessage(stdClass $data)
 {
     $context = array('source' => 'userstream');
     parent::handleMessage($data, $context);
 }