/** * {@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); }
/** * {@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); }