Filter should be builder pattern
This commit is contained in:
@@ -149,8 +149,10 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Attaches a "filter" function to track socket connections/disconnections */
|
/* 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));
|
httpContext->filter(std::move(filterHandler));
|
||||||
|
|
||||||
|
return std::move(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Publishes a message to all websocket contexts - conceptually as if publishing to the one single
|
/* Publishes a message to all websocket contexts - conceptually as if publishing to the one single
|
||||||
|
|||||||
Reference in New Issue
Block a user