How to stop uWS::Hub objects and subscription connections, #1652
dongpuxiao
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Code:
void MarketDataThread::Start(std::string channel, std::string symbol)
{
uWS::Hub hub;
}
void MarketDataThread::Stop()
{
// ???? HOW can I Do?
}
After I dynamically start the subscription in the thread, how do I stop the running of the uWS::Hub object in the stop? There is a uWS::Hub object in each thread. How do I implement it? thanks。
Beta Was this translation helpful? Give feedback.
All reactions