2018-08-22 07:08:48 +00:00
|
|
|
#include "WebSocketTest.h"
|
|
|
|
using namespace example;
|
2018-08-23 10:05:17 +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-08-22 10:20:54 +00:00
|
|
|
LOG_TRACE<<"new websocket message:"<<message;
|
2018-08-22 11:20:34 +00:00
|
|
|
}void WebSocketTest::handleConnection(const WebSocketConnectionPtr& wsConnPtr) {
|
2018-08-22 07:08:48 +00:00
|
|
|
//write your application logic here
|
2018-08-22 11:20:34 +00:00
|
|
|
|
2018-08-23 05:17:54 +00:00
|
|
|
wsConnPtr->send("Hello!!");
|
|
|
|
}
|