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

请问如何启动服务时仅开启ws服务 #446

Closed
lwhdev opened this issue May 22, 2023 · 2 comments
Closed

请问如何启动服务时仅开启ws服务 #446

lwhdev opened this issue May 22, 2023 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@lwhdev
Copy link

lwhdev commented May 22, 2023

| PHP | 7.3.0 |
| Swoole | 4.4.16 |
| LaravelS | 3.7.36 |
| Laravel Framework [local] | 7.30.6 |

一定要开启http服务,ws才能使用吗

@lwhdev lwhdev added the analyzing Analyzing this issue label May 22, 2023
@hhxsv5
Copy link
Owner

hhxsv5 commented May 22, 2023

对,你可以去了解下websocket的建立过程。建立websocket协议需要先建立http,再upgrade为websocket。另外不用担心资源浪费,websocket和http是共用一套worker进程组。

@hhxsv5 hhxsv5 closed this as completed May 22, 2023
@hhxsv5 hhxsv5 added question Further information is requested and removed analyzing Analyzing this issue labels May 22, 2023
@lwhdev
Copy link
Author

lwhdev commented May 25, 2023

好的,谢谢

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

No branches or pull requests

2 participants