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.
我想在服务器更新时将数据从服务器发送到客户端。通常客户端向服务器发送请求,服务器向客户端响应。有没有办法直接向特定客户端发送数据?
请指导我。
您似乎在追求所谓的推送技术:
推送或服务器推送描述了一种基于 Internet 的通信方式,其中对给定事务的请求由发布者或中央服务器发起。它与拉取形成对比,拉取信息的传输请求由接收方或客户端发起。
这个和这个以前的 SO 帖子似乎讨论了你所追求的。