Answer the question
In order to leave comments, you need to log in
How to properly organize the reception of data through WS?
Good day to all, I need to write an asynchronous WS client for reading data in real time, I chose boost for this task - and I successfully assembled this client example .
Actually the question is how to organize the reading of data, the example now connects to the WS server, sends something, receives a response and exits.
Explain the following things:
The code comments say the following:
// Run the I/O service. The call will return when
// the socket is closed.
ioc.run();
Answer the question
In order to leave comments, you need to log in
or i misunderstood something
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question