# WebSocket 聊天室
使用了 [Nest](https://github.com/nestjs/nest) 框架。
主要代码在 `gateway` 目录下。
更多请参考 [NestJS Simple Chat 新建工程](https://an.rustfisher.com/nestjs/simple-chat/create-nest-project/)
## 安装
```bash
$ npm install
```
## 运行
```bash
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
```
本地运行后,分房聊天室请访问 http://localhost:9010/chatroom.html
## 测试
```bash
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
```
评论0