diff options
Diffstat (limited to 'include/libsock')
| -rw-r--r-- | include/libsock/server/client.hpp | 1 | ||||
| -rw-r--r-- | include/libsock/server/clients.hpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/libsock/server/client.hpp b/include/libsock/server/client.hpp index 591bc2a..1d07837 100644 --- a/include/libsock/server/client.hpp +++ b/include/libsock/server/client.hpp @@ -48,6 +48,7 @@ class Client { bool isValid(); private: + void init(); Client(SP<Server> server, SP<Clients> clients, bool track = false, bool oneShot = true); WP<Client> m_self; diff --git a/include/libsock/server/clients.hpp b/include/libsock/server/clients.hpp index b18c043..dac5dd1 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(std::function<void(const WP<Client> &)> loopFunc = [](const WP<Client> &) { ; }); + SP<Client> newClient(); void broadcast(const std::string &msg, std::optional<WP<Client>> self = std::nullopt); // second param only specified when we // want to exclude the sender |
