Wrap up messageHandler, send(message)

This commit is contained in:
Alex Hultman
2018-10-30 03:01:19 +01:00
parent 292476366c
commit f2e2b7107a
5 changed files with 45 additions and 9 deletions
+6
View File
@@ -1,11 +1,17 @@
#ifndef WEBSOCKETCONTEXTDATA_H
#define WEBSOCKETCONTEXTDATA_H
#include <functional>
#include <string_view>
namespace uWS {
template <bool, bool> struct WebSocket;
template <bool SSL>
struct WebSocketContextData {
std::function<void(WebSocket<SSL, true> *, std::string_view)> messageHandler;
};
}