Pass opCode around, add Loop::setPostHandler

This commit is contained in:
Alex Hultman
2018-11-04 10:44:11 +01:00
parent 0d09d1db02
commit 894609e638
6 changed files with 20 additions and 5 deletions
+3 -1
View File
@@ -4,6 +4,8 @@
#include <functional>
#include <string_view>
#include "WebSocketProtocol.h"
namespace uWS {
template <bool, bool> struct WebSocket;
@@ -11,7 +13,7 @@ template <bool, bool> struct WebSocket;
template <bool SSL>
struct WebSocketContextData {
std::function<void(WebSocket<SSL, true> *, std::string_view)> messageHandler;
std::function<void(WebSocket<SSL, true> *, std::string_view, uWS::OpCode)> messageHandler;
};
}