public void ReceiveMessage(CNSMessageClient sender, string cryptText) { MessageReceivingParams p = incomingMessages[sender]; string message; if (p.DecryptMessage(cryptText, out message)) { OnMessageRecievedCallback?.Invoke(message); CNSClientManager.WriteLine("Received a verified message at Client " + clientID + " from Client " + sender.clientID + " : " + message); } else { OnMessageFailedCallback?.Invoke(); } }
private void LogOut(string message) { CNSClientManager.WriteLine(message); }