Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tonny-zhang/smartpush
长连接服务器分布式管理及消息推送平台
https://github.com/tonny-zhang/smartpush
Last synced: 1 day ago
JSON representation
长连接服务器分布式管理及消息推送平台
- Host: GitHub
- URL: https://github.com/tonny-zhang/smartpush
- Owner: tonny-zhang
- Created: 2014-09-29T09:46:46.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-28T09:46:52.000Z (over 8 years ago)
- Last Synced: 2024-11-06T05:12:32.492Z (about 2 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 长连接分布式线性扩展解决方案
# 目录说明
# server.master
1. 负责分配客户端实际连接的长连接服务器
2. 负责分配消息分配
# server.slave
1. 负责长连接的保持及和master的心跳检测
-------------
# 测试
1. `node server/master`
1. `node server/slave 3001` //启动一个slave
1. `node server/slave 3002` //启动第二个slave
1. `node server/test/client/client` // 模拟多个客户端
1. `node server/test/client/post_msg` //模板向客户端发送数据## 服务器状态查看
`monitor/server.html`