Initial integration of new topicTree

This commit is contained in:
Alex Hultman
2021-01-28 17:26:02 +01:00
parent af8094268c
commit ac7c72698d
3 changed files with 10 additions and 4 deletions
+7 -1
View File
@@ -76,7 +76,13 @@ public:
Loop::get()->removePreHandler(this);
}
WebSocketContextData() : topicTree([this](Subscriber *s, std::pair<std::string_view, std::string_view> data) -> int {
WebSocketContextData() : topicTree([this](Subscriber *s, Intersection &intersection) -> int {
std::pair<std::string_view, std::string_view> data = intersection.dataChannels;
/* We rely on writing to regular asyncSockets */
auto *asyncSocket = (AsyncSocket<SSL> *) s->user;