# init
## QuickStart
<!-- add docs here for user -->
see [egg docs][egg] for more detail.
### Development
```bash
$ npm i
$ npm run dev
$ open http://localhost:7001/
```
### Deploy
```bash
$ npm start
$ npm stop
```
### npm scripts
- Use `npm run lint` to check code style.
- Use `npm test` to run unit test.
- Use `npm run autod` to auto detect dependencies upgrade, see [autod](https://www.npmjs.com/package/autod) for more detail.
[egg]: https://eggjs.org
没有合适的资源?快使用搜索试试~ 我知道了~
egg-socket-io的demo案例
共53个文件
json:27个
js:9个
log:5个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 6 下载量 78 浏览量
2021-06-01
16:57:41
上传
评论
收藏 105KB RAR 举报
温馨提示
主要实现egg利用egg-socket.io 和前端建立长链接 。里面2个文件egg、和html,一个是egg的 你更新下依赖,可以直接启动,还一个是html可以直接测试后端的推送。 演示地址看这里https://blog.csdn.net/xuelang532777032/article/details/117447442
资源推荐
资源详情
资源评论
收起资源包目录
egg-socket-iodemo.rar (53个子文件)
egg-socket-iodemo
html
jquery-2.1.4.min.js 82KB
socket.io.js 60KB
jquery版本.html 4KB
egg
.travis.yml 172B
.eslintrc 37B
config
config.default.js 821B
plugin.js 124B
jsconfig.json 33B
package.json 1020B
logs
init
egg-web.log 52KB
egg-schedule.log 22KB
egg-agent.log 73KB
init-web.log 755B
common-error.log 6KB
.github
workflows
nodejs.yml 1KB
test
app
controller
home.test.js 462B
app
io
controller
home.js 833B
controller
home.js 214B
public
router.js 243B
appveyor.yml 242B
.gitignore 143B
typings
config
plugin.d.ts 852B
index.d.ts 380B
app
index.d.ts 145B
controller
index.d.ts 238B
run
application_timing_7044.json 13KB
application_timing_15524.json 13KB
application_timing_18488.json 13KB
application_timing_16012.json 13KB
application_timing_15768.json 13KB
agent_timing_9268.json 9KB
application_timing_11188.json 13KB
application_timing_15380.json 13KB
application_timing_7548.json 13KB
application_timing_16308.json 13KB
application_timing_9664.json 13KB
agent_config_meta.json 28KB
application_timing_17400.json 13KB
application_config.json 17KB
router.json 200B
application_config_meta.json 28KB
application_timing_10844.json 13KB
agent_config.json 14KB
application_timing_9312.json 13KB
application_timing_14176.json 13KB
application_timing_13636.json 13KB
application_timing_12572.json 13KB
application_timing_14104.json 13KB
application_timing_13616.json 13KB
application_timing_17108.json 13KB
README.md 471B
.eslintignore 9B
.autod.conf.js 365B
共 53 条
- 1
雪狼之夜
- 粉丝: 2w+
- 资源: 40
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页