Esempio n. 1
0
 /**
  * Handler triggered when a new data is received from existing connection.
  *
  * @param SocketInterface $socket
  * @param mixed $data
  */
 public function handleData($socket, $data)
 {
     try {
         $this->component->handleMEssage($socket->conn, new IoMessage($data));
     } catch (Error $ex) {
         $this->handleError($socket, $ex);
     } catch (Exception $ex) {
         $this->handleError($socket, $ex);
     }
 }