Hello. I am using a TCP client to send and receive data, but for some reason the data it receives has a bunch of white spaces at the end of each message.
The data I receive is: "Blablablabla123 (space) (space) (space) (space) (space) (space) (space) (space) (space)", while the data I send truly is "Blablablabla123"
System.Text.StringBuilder income_message_client = new System.Text.StringBuilder();
byte bytes = new byte[client.ReceiveBufferSize];
read = client.GetStream().Read(bytes, 0, bytes.Length);
while (read == 0);
//do things based on data received
(space) = " "