public void OnStringReceived(string message)
        {
            Debug.WriteLine(message);
            StringReceived?.Invoke(message);

            if (message.Length > 2)
            {
                //eliminate badly embedded characters if found
                message = message.Replace("{}", "");

                var msg = MessageFactory.FromMessage(message);
                if (msg != null)
                {
                    OnMessageReceived(msg);
                }
            }
        }