setServerDisconnectCallback

ClientSocketInterface::setServerDisconnectCallback

Sets the function that will be called when the client gets disconnected from the server.

Declaration

virtual void setServerDisconnectCallback(std::function<void()> callback) = 0;

Parameters

Name

Type

Description

callback

std::function<void()>

The function that will be called when the client gets disconnected from the server.

Returns

None.