node-push-message
v1.0.2
Published
backend push message
Readme
node后台消息推送控制器
Introduction
基于socket.io实现的消息推送,使后端推送消息的方式更简单、更灵活。
Example
- cd demo
- npm install
- npm start
- 打开浏览器输入http://localhost:8999
API
- init(Server): 初始化socket。
- pushMsg(id[String], msg[Object]): 推送消息的方法。
