setClientDisconnectCallback
ServerSocketInterface::setClientDisconnectCallback
Sets the function that will be called when a client disconnects from the server.
Declaration
virtual void setClientDisconnectCallback(std::function<void(ConnectedClientID)> callback) = 0;
Parameters
Name |
Type |
Description |
---|---|---|
callback |
std::function<void(ConnectedClientID)> |
The function that will be called when a client disconnects from the server. |
Returns
None.