2018-08-22 07:08:48 +00:00
|
|
|
#include "WebSocketTest.h"
|
|
|
|
using namespace example;
|
2018-10-14 07:56:54 +00:00
|
|
|
void WebSocketTest::handleNewMessage(const WebSocketConnectionPtr &wsConnPtr, std::string &&message)
|
2018-08-22 07:08:48 +00:00
|
|
|
{
|
|
|
|
//write your application logic here
|
2018-10-14 07:56:54 +00:00
|
|
|
LOG_TRACE << "new websocket message:" << message;
|
2018-08-23 05:17:54 +00:00
|
|
|
}
|
2018-08-27 08:07:36 +00:00
|
|
|
void WebSocketTest::handleConnectionClosed(const WebSocketConnectionPtr &)
|
|
|
|
{
|
2018-10-14 07:56:54 +00:00
|
|
|
LOG_TRACE << "websocket closed!";
|
2018-08-27 08:07:36 +00:00
|
|
|
}
|
|
|
|
void WebSocketTest::handleNewConnection(const HttpRequestPtr &,
|
|
|
|
const WebSocketConnectionPtr &)
|
|
|
|
{
|
2018-10-14 07:56:54 +00:00
|
|
|
LOG_TRACE << "new websocket connection!";
|
2018-08-27 08:07:36 +00:00
|
|
|
}
|