diff --git a/src/App.h b/src/App.h index 46d3912..751fd16 100644 --- a/src/App.h +++ b/src/App.h @@ -149,8 +149,10 @@ public: } /* Attaches a "filter" function to track socket connections/disconnections */ - void filter(MoveOnlyFunction *, int)> &&filterHandler) { + TemplatedApp &&filter(MoveOnlyFunction *, 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