I am looking to learn how to assign a name to the newly converted string and then parse that string based on
string[] separatingStrings = { ",", "<<", ">>" };
string[] messages = message.Split(separatingStrings);
Console.WriteLine($"{messages.Length} substrings in text:");
below contains the var message
converted to a string.
What is the name of the string so I can parse it and output it into unity debug.log
?
private void ReceiveMessageLoop()
{
while (true)
{
var message = new NetMQMessage();
if (!_socket.TryReceiveMultipartMessage(MessageCheckRate, ref message, 2)) continue;
_messageSubject.OnNext(message);
Console.WriteLine($"0:{message[0].ConvertToString()} 1:{message[1].ConvertToString()}");
//Console.WriteLine(message);
}
}