Question about the sub/pub #1118
Answered
by
ghost
pengweichu
asked this question in
Q&A
-
Hi, I would like to implement publish the message from threads to clients, I wrote the below code but it not works, in my thread loop, the lambda function of
|
Beta Was this translation helpful? Give feedback.
Answered by
ghost
Nov 8, 2020
Replies: 1 comment
-
uWS::Loop::get(); gets the loop for the calling thread. You want the loop of the main thread, so pass it along in the constructor of MessageProducer |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
uWS::Loop::get(); gets the loop for the calling thread. You want the loop of the main thread, so pass it along in the constructor of MessageProducer