private void ConnectionClosed(Response response) { CustomTools.Console.DebugLog("EchoApiManager class", CustomTools.Console.LogMagentaColor("Regular Callback:"), "ConnectionClosed()"); ResetApi(); response.SendResultData <string>(reason => OnConnectionClosed.SafeInvoke(reason), null); }
// call when client close connection private static void ConnectionClosed(Connection connection) { CustomTools.Console.DebugLog("Connection closed"); OnConnectionClosed.SafeInvoke(connection); }