Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function onMessage(ConnectionInterface $from, $msg)
 {
     if (null !== $this->_in) {
         $this->_in->addInfo('onMsg', array('from' => $from->resourceId, 'len' => strlen($msg), 'msg' => $msg));
     }
     $this->_component->onMessage($from, $msg);
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 public function onMessage(ConnectionInterface $from, $msg)
 {
     $this->_in->info('onMsg', ['from' => $from->resourceId, 'len' => strlen($msg), 'msg' => $msg]);
     $this->_component->onMessage($this->_connections[$from], $msg);
 }