使用非 WebSocket 的方式实现双向即时通信
参考 k8s 的 list-watch 机制
相关连接
体验方式:
- npm install
- npm intall -g http-server
- http-server -p ${your-port} ./
- node ./test/server/index.js
- 同时打开浏览器两个窗口, 分别访问 http://localhost:${your-port}/test/client/client1 以及 http://localhost:${your-port}/test/client/client2