private void ConnectionOpened(Response response) { CustomTools.Console.DebugLog("EchoApiManager class", CustomTools.Console.LogMagentaColor("Regular Callback:"), "ConnectionOpened()"); InitializeApi(LoginApi.Create(this)); response.SendResultData <string>(url => OnConnectionOpened.SafeInvoke(url), null); }
// call when client connect to server successful private static void ConnectionOpened(Connection connection) { CustomTools.Console.DebugLog("Connected to", connection.FullUrl); OnConnectionOpened.SafeInvoke(connection); }