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

Multiple WebSocketClients in one thread #1366

Closed
popov-aa opened this issue Oct 28, 2023 · 3 comments
Closed

Multiple WebSocketClients in one thread #1366

popov-aa opened this issue Oct 28, 2023 · 3 comments

Comments

@popov-aa
Copy link

I need to connect from one application to a hundred websocket servers and receive messages from them. How do I do this, without creating a thread for each client?

@PhilipRoman
Copy link
Collaborator

Hi, this is currently not possible without creating many threads. There are no plans to implement this as it would require rewriting most of the client code and we don't have enough contributors :P

I'm closing this as completed, let me know if there is anything I can help with.

@popov-aa
Copy link
Author

popov-aa commented Nov 3, 2023

Thank you. I found solution on c++: https://github.com/zaphoyd/websocketpp

@HePingLaoSan
Copy link

Hi, this is currently not possible without creating many threads. There are no plans to implement this as it would require rewriting most of the client code and we don't have enough contributors :P

I'm closing this as completed, let me know if there is anything I can help with.

So, the correct way to use this library is to perform the creation operation of each WebSocket in its own thread, right?

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

3 participants