Example #1
0
        private static void websocketMessage(object sender, MessageEventArgs e)
        {
            try
            {
                HealObject data = HealObject.ToObject(e.Data);
                Logger.Log("Message from Server - " + data.action);
                switch (data.action)
                {
                case "find":
                    checkForObjectInContext(data);
                    break;

                case "serverStop":
                    stopAll();
                    break;

                case "startSpy":
                    //Spy.startSpy();
                    break;

                case "startHeal":
                    //cognizantitsToolbar.startHeal();
                    break;

                case "startRecord":
                    //cognizantitsToolbar.startRecord();
                    break;
                }
            }
            catch (Exception ex)
            {
                Logger.Log(ex.ToString());
            }
        }
Example #2
0
 private static void checkForObjectInContext(HealObject data)
 {
     //if (Heal.permissionGranted)
     Heal.Search(data);
 }
Example #3
0
 private static void findAndHighlightElement(HealObject message)
 {
     dehighlightOldElements();
     searchElements(message.objects);
 }
Example #4
0
 internal static void Search(HealObject message)
 {
     findAndHighlightElement(message);
 }