-
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.
Answered by
ithewei
Oct 29, 2022
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
HACKONDEX
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
WebSocketClient(EventLoopPtr loop = NULL);
Consturctor can pass a EventLoopPtr.
refer to examples/websocket_client_test.cpp TestMultiClientsRunInOneEventLoop