Filter should be builder pattern

This commit is contained in:
Alex Hultman
2022-11-01 06:01:20 +01:00
parent 32d71d52b7
commit 4109771890
+3 -1
View File
@@ -149,8 +149,10 @@ public:
}
/* Attaches a "filter" function to track socket connections/disconnections */
void filter(MoveOnlyFunction<void(HttpResponse<SSL> *, int)> &&filterHandler) {
TemplatedApp &&filter(MoveOnlyFunction<void(HttpResponse<SSL> *, int)> &&filterHandler) {
httpContext->filter(std::move(filterHandler));
return std::move(*this);
}
/* Publishes a message to all websocket contexts - conceptually as if publishing to the one single