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.
我想创建一个页面,在其中我可以在一天中的特定时间将数据“推送”给客户。 我有哪些选择?我知道有基于 javascript 的 socket.io,但我需要它与 django 一起使用。另外,我需要根据服务器时间将事件推送到客户端。
编辑:我的意思是这样的: 在javascript中:
listener.onserverpush(function(data) {...});
服务器推送应该在一天中的特定时间发生在服务器中(基于服务器时钟)。