Write strings from array to tcp server

Hi,

I’m trying to loop through an array of strings and send them over a network. My script (attached image) works fine but instead of sending the strings as separate messages it loops through the entire array and sends out all strings as a single string.
I think it is adding the string after each loop to a buffer and flushing out the buffer only at the end of the loop. Please let me know if there is any way to flush the buffer after each loop so it sends out each string of the array as a separate message.

Thanks