Git Product home page Git Product logo

Comments (4)

hhxsv5 avatar hhxsv5 commented on May 4, 2024

谢谢反馈!

from laravel-s.

hhxsv5 avatar hhxsv5 commented on May 4, 2024

经过测试,swoole_http_response无法实现flush输出,只能一次性输出。

不过仍然可以使用ob,执行ob_start()和ob_end_*()配对即可。

 ob_start();
 echo time(), '<br>';
 ob_end_flush();

另外,为何会有持续输出这种需求,应该可以用其他方式来实现,欢迎进技术群QQ群: 698480528 详细交流。

from laravel-s.

hongbaotong avatar hongbaotong commented on May 4, 2024

确实是可以使用其他方式来实现,不过这个是旧业务,是一个文件扫描持续输出的功能,影响不大

from laravel-s.

pensacola1989 avatar pensacola1989 commented on May 4, 2024

698480528

chatGPT逐字输出啊,laravel-s 得用php-sse么?我试了一下,不行,单开个swoole server可以

from laravel-s.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.