// Send mouse data public void SendMessage(string message) { if (string.IsNullOrEmpty(message)) { return; } _callApp.Send(message); }
/// <summary> /// Sends a message to the other end /// </summary> /// <param name="msg"></param> private void SendMsg(string msg) { if (String.IsNullOrEmpty(msg)) { //never send null or empty messages. webrtc can't deal with that return; } Append(msg); mApp.Send(msg); //reset UI uMessageInputField.text = ""; uMessageInputField.Select(); }