关于nodejs将数据推送到浏览器开源框架

时间:2016-11-26 07:26:10

标签: node.js linux curl

现在我想要一个nodejs开源或开源框架将一些数据推送到用户浏览器。

例如,当我使用curl post或得到类似url“http://localhost:3303?pushdata=sth”到nodejs服务器时,nodejs服务器收到数据pushdata=sth并推送到用户浏览器sth

我需要一些源代码或源代码框架来完成我的项目需求, 感谢

1 个答案:

答案 0 :(得分:0)

你在谈论像http://socket.io/这样的事吗?您将使用快速路由在节点服务器上创建其余api,然后将消息推送到与其连接的浏览器。