update comments
This commit is contained in:
parent
d6e9b61c8e
commit
469d127d61
@ -113,12 +113,10 @@ namespace ix
|
|||||||
WebSocketSendInfo ping(const std::string& text);
|
WebSocketSendInfo ping(const std::string& text);
|
||||||
void close();
|
void close();
|
||||||
|
|
||||||
/**
|
// Set callback to receive websocket messages.
|
||||||
* Set callback to receive websocket messages.
|
// Be aware: your callback will be executed from websocket's internal thread!
|
||||||
*
|
|
||||||
* Be aware: your callback will be executed from websocket's internal thread!
|
|
||||||
*/
|
|
||||||
void setOnMessageCallback(const OnMessageCallback& callback);
|
void setOnMessageCallback(const OnMessageCallback& callback);
|
||||||
|
|
||||||
static void setTrafficTrackerCallback(const OnTrafficTrackerCallback& callback);
|
static void setTrafficTrackerCallback(const OnTrafficTrackerCallback& callback);
|
||||||
static void resetTrafficTrackerCallback();
|
static void resetTrafficTrackerCallback();
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* IXWebSocketPoll.cpp
|
* IXWebSocketMessageQueue.cpp
|
||||||
* Author: Korchynskyi Dmytro
|
* Author: Korchynskyi Dmytro
|
||||||
* Copyright (c) 2017-2018 Machine Zone, Inc. All rights reserved.
|
* Copyright (c) 2017-2019 Machine Zone, Inc. All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "IXWebSocketMessageQueue.h"
|
#include "IXWebSocketMessageQueue.h"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* IXWebSocketPoll.h
|
* IXWebSocketMessageQueue.h
|
||||||
* Author: Korchynskyi Dmytro
|
* Author: Korchynskyi Dmytro
|
||||||
* Copyright (c) 2017-2018 Machine Zone, Inc. All rights reserved.
|
* Copyright (c) 2017-2019 Machine Zone, Inc. All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
@ -13,9 +13,9 @@
|
|||||||
|
|
||||||
namespace ix
|
namespace ix
|
||||||
{
|
{
|
||||||
/**
|
//
|
||||||
* A helper class to dispatch websocket message callbacks in your thread.
|
// A helper class to dispatch websocket message callbacks in your thread.
|
||||||
*/
|
//
|
||||||
class WebSocketMessageQueue
|
class WebSocketMessageQueue
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user