summaryrefslogtreecommitdiff
path: root/include/libsock
diff options
context:
space:
mode:
Diffstat (limited to 'include/libsock')
-rw-r--r--include/libsock/server/clients.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libsock/server/clients.hpp b/include/libsock/server/clients.hpp
index dac5dd1..cb11e74 100644
--- a/include/libsock/server/clients.hpp
+++ b/include/libsock/server/clients.hpp
@@ -24,7 +24,7 @@ class Clients : public std::enable_shared_from_this<Clients> {
static SP<Clients> create(WP<Server> server);
~Clients();
- SP<Client> newClient();
+ SP<Client> newClient(std::function<void(SP<Client> &)> cb = [](SP<Client>) {});
void broadcast(const std::string &msg, std::optional<WP<Client>> self = std::nullopt); // second param only specified when we
// want to exclude the sender