Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我收到一个客户端的请求,我想构建一个响应并将其发送给两个客户端(其中一个是请求者)。我知道的关于另一个客户端的唯一信息是它的会话。有没有办法HttpResponse使用对象来构造HttpSession对象?
HttpResponse
HttpSession
我不确定您要完成什么,但您可能想通过“reversal ajax”联系第二个客户。你可能想看看彗星编程
Comet 是一种 Web 应用程序模型,其中长期持有的 HTTP 请求允许 Web 服务器将数据推送到浏览器,而无需浏览器显式请求它。维基百科