-
|
I want to use WebsocketClient and I need 10 connections at the same time. As I claimed from the code each websocket connection is held in separate std::thread which is not acceptable for my project. Is it possible to hold 10 websocket connections in one thread with api of libhv ? As I understand there should be some epoll looping over 10 sockets and processing the input data. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
|
Beta Was this translation helpful? Give feedback.
WebSocketClient(EventLoopPtr loop = NULL);Consturctor can pass a EventLoopPtr.
refer to examples/websocket_client_test.cpp TestMultiClientsRunInOneEventLoop