Added WebSocketMessageQueue

This commit is contained in:
dimon4eg
2019-05-12 00:26:52 +03:00
4 changed files with 173 additions and 0 deletions

View File

@ -114,7 +114,10 @@ namespace ix
WebSocketSendInfo ping(const std::string& text);
void close();
// Set callback to receive websocket messages.
// Be aware: your callback will be executed from websocket's internal thread!
void setOnMessageCallback(const OnMessageCallback& callback);
static void setTrafficTrackerCallback(const OnTrafficTrackerCallback& callback);
static void resetTrafficTrackerCallback();