TooTallNate / Java-WebSocket

A barebones WebSocket client and server implementation written in 100% Java.

Home Page:http://tootallnate.github.io/Java-WebSocket

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple WebSocketClients in one thread

popov-aa opened this issue · comments

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?

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.

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?