Added IXWebSocketPoll class

This commit is contained in:
Dimon4eg
2019-05-08 22:02:56 +03:00
parent 88abb79a96
commit 45d40dc159
4 changed files with 167 additions and 0 deletions

View File

@ -113,6 +113,11 @@ 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();