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

关于多HTTP/WEBSOCKET服务监听的问题 #97

Open
wangjikill opened this issue Mar 30, 2018 · 1 comment
Open

关于多HTTP/WEBSOCKET服务监听的问题 #97

wangjikill opened this issue Mar 30, 2018 · 1 comment

Comments

@wangjikill
Copy link

(1)如果主服务是tcp,想再监听HTTP,也是可以的,需要在port中设置启用http即可,同理,websocket启用websocket即可。但是需要在port中实现对应的处理逻辑。
(2)您的框架在主服务是http或websocket时,想在port再监听一个http或websockt时,您的swoole\server.php handleCallback()中,不能添加onrequest回调。因为$callbacks = ['onConnect', 'onClose', 'onReceive', ]。这个地方不太理解您的用意。望能解释一下,为何这里限制。

@JanHuang
Copy link
Member

JanHuang commented May 2, 2018

尚未验证多个HTTP协议同时监听的情况。需要验证一下swoole是否允许多个HTTP/WebSocket 同时监听

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants