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

useWebSocket 优化提议 #2187

Closed
umlink opened this issue May 10, 2023 · 1 comment
Closed

useWebSocket 优化提议 #2187

umlink opened this issue May 10, 2023 · 1 comment

Comments

@umlink
Copy link

umlink commented May 10, 2023

socketUrl 是否可以支持数组,针对多口端的场景,假如有一个端口段[100000, 100006],其中有个连接成功视为成功,类似 Promise.race

@crazylxr
Copy link
Collaborator

如果是这样会不会有希望有一个失败视为失败呢?类似 Promise.all

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