private function handleReceive($data)
    {
        if (!$this->isConnected && !$this->isConnecting) {
            return;
        }

        $flowCount = count($this->receivingFlows);

        $packets = $this->parser->push($data);
        foreach ($packets as $packet) {
            $this->handlePacket($packet);
        }

        if ($flowCount > count($this->receivingFlows)) {
            $this->receivingFlows = array_values($this->receivingFlows);
        }

        $this->handleSend();
    }
private function handleReceive($data)
    {
        if (!$this->isConnected && !$this->isConnecting) {
            return;
        }

        $flowCount = count($this->receivingFlows);

        $packets = $this->parser->push($data);
        foreach ($packets as $packet) {
            $this->handlePacket($packet);
        }

        if ($flowCount > count($this->receivingFlows)) {
            $this->receivingFlows = array_values($this->receivingFlows);
        }

        $this->handleSend();
    }
private function handleReceive ( $ data ) { if ( ! $ this -> isConnected && ! $ this -> isConnecting ) { return ; } $ flowCount = count ( $ this -> receivingFlows ) ; $ packets = $ this -> parser -> push ( $ data ) ; foreach ( $ packets as $ packet ) { $ this -> handlePacket ( $ packet ) ; } if ( $ flowCount > count ( $ this -> receivingFlows ) ) { $ this -> receivingFlows = array_values ( $ this -> receivingFlows ) ; } $ this -> handleSend ( ) ; }
Handles incoming data.

@param string $data
Handles incoming data .