且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何与QUOT;流" JSON从服务器到客户端使用的JavaScript

更新时间:2023-11-12 16:17:40

JSON是数据要通过HTTP协议(如文本,HTML,PDF等),只是还没有另一种格式。你可能指的是 cometd

JSON is just yet another format of data going over the HTTP protocol (like text, html, pdf, etc). You are probably referring to cometd.

这允许你打开一个持久连接,并从服务器到客户端推送数据(即流式处理)。任何格式有效推动,客户端只需要了解它。

This allows you to open a persistent connection and push data from the server to the client (ie stream it). Any format is valid to push, the client just needs to understand it.