Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

socket.io io路由对应的controller层不执行 #3438

Closed
lxiaoixi opened this issue Jan 31, 2019 · 5 comments
Closed

socket.io io路由对应的controller层不执行 #3438

lxiaoixi opened this issue Jan 31, 2019 · 5 comments

Comments

@lxiaoixi
Copy link

What happens?

egg-socket.io io路由对应的controller层代码不执行,middleware 层正常执行

Mini Showcase Repository(REQUIRED)

https://github.com/lxiaoixi/egg-practice.git

Context

  • Node Version:
    v8.9.0
  • Egg Version:
    2.14.2
  • Platform:
    win10
@whlsxl
Copy link

whlsxl commented Feb 3, 2019

@lxiaoixi 目前代码看不出问题,请问是怎么调用不能执行?

@ngot
Copy link
Member

ngot commented Feb 11, 2019

@lxiaoixi 具体怎么复现你的问题呢?

@egg-bot
Copy link

egg-bot commented Feb 11, 2019

Hello @lxiaoixi. Please provide a reproducible example following the instruction.

Issues labeled by Need Reproduce will be closed if no activities in 7 days.


@lxiaoixi,请根据这个说明提供最小可复现代码。

如果在 7 天内没有进展会被自动关闭。

@lxiaoixi
Copy link
Author

@ngot 没问题了,刚开始没弄懂controller层的作用,谢谢了

@lxiaoixi
Copy link
Author

@ngot
大神打扰了,想问下
egg-socket.io 使用redis 进行sub/pub时,pub一条消息时,该消息会重复收到两次,这个是怎么回事呢?

相关代码:

订阅
发布

复现:
http://127.0.0.1:7001/ceshi 客户端连接,进行订阅
http://127.0.0.1:7001/api/users 发布消息

@lxiaoixi lxiaoixi reopened this Feb 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants