protected function sendInChunk($content)
    {
        if (strlen($content) <= static::CHUNK_SIZE) {
            $this->swooleResponse->end($content);
            return;
        }

        foreach (str_split($content, static::CHUNK_SIZE) as $chunk) {
            $this->swooleResponse->write($chunk);
        }

        $this->swooleResponse->end();
    }
protected function sendInChunk($content)
    {
        if (strlen($content) <= static::CHUNK_SIZE) {
            $this->swooleResponse->end($content);
            return;
        }

        foreach (str_split($content, static::CHUNK_SIZE) as $chunk) {
            $this->swooleResponse->write($chunk);
        }

        $this->swooleResponse->end();
    }
protected function sendInChunk ( $ content ) { if ( strlen ( $ content ) <= static :: CHUNK_SIZE ) { $ this -> swooleResponse -> end ( $ content ) ; return ; } foreach ( str_split ( $ content , static :: CHUNK_SIZE ) as $ chunk ) { $ this -> swooleResponse -> write ( $ chunk ) ; } $ this -> swooleResponse -> end ( ) ; }
Send content in chunk

@param string $content
Send content in chunk