setServerDisconnectCallback
ClientSocket::setServerDisconnectCallback
Sets the function that will be called when the client gets disconnected from the server.
Declaration
void setServerDisconnectCallback(std::function<void()> callback);
Parameters
Name |
Type |
Description |
---|---|---|
callback |
std::function<void()> |
The function that will be called when the client gets disconnected from the server. |
Returns
None.