Streaming Http responses with NodeJS

只谈情不闲聊 提交于 2019-11-27 15:39:52
Straseus

It's possible that the browser is not rendering the data until the closing tags have been read. Try outputting plain text instead of html tags to test this.

Do you see any input coming into firebug / chrome inspector?

Related Question

http://nodejs.org/api/stream.html#stream_stream_write_string_encoding_fd :

Writes string with the given encoding to the stream. Returns true if the string has been flushed to the kernel buffer. Returns false to indicate that the kernel buffer is full, and the data will be sent out in the future.

So output the results of .write() methods. See if it returns a true or false.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!