后端采用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