1. 创建node项目,下载restify、socket.io相关的模块,下载使用npm install 模块称
2. 构建一个自己的推送消息模块(msgpush)
![](https://img.haomeiwen.com/i1938311/a4fa1aa13b7ecedc.png)
![](https://img.haomeiwen.com/i1938311/eeef08a41f4e7fa6.png)
3. 服务端引用msgpush并使用msgpush模块
![](https://img.haomeiwen.com/i1938311/b17faa65842f4091.png)
4. 前端Html接收推送消息
![](https://img.haomeiwen.com/i1938311/1158bcb9940e2b4f.png)
![](https://img.haomeiwen.com/i1938311/8e8b552eecefa4ea.png)
1. 创建node项目,下载restify、socket.io相关的模块,下载使用npm install 模块称
2. 构建一个自己的推送消息模块(msgpush)
3. 服务端引用msgpush并使用msgpush模块
4. 前端Html接收推送消息
本文标题:restify + socketio 消息推送
本文链接:https://www.haomeiwen.com/subject/fcvgjttx.html
网友评论