后端采用websocketd的简单的websocket demo。推荐资料:https://www.ruanyifeng.com/blog/2017/05/websocket.html
1、Windows64 2、node+npm
1、后端服务启动
npm run counter
或
npm run greeter
或
npm run chat
2、前端 记得使用localhost的方式跑起index.html
后端采用websocketd的简单的websocket demo。推荐资料:https://www.ruanyifeng.com/blog/2017/05/websocket.html
1、Windows64 2、node+npm
1、后端服务启动
npm run counter
或
npm run greeter
或
npm run chat
2、前端 记得使用localhost的方式跑起index.html