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