I don't think it is necessary, because if the user want to send all messages in one connection, just call the method once and passing all the messages.

if the user want to send in separate connection, call it once per message. we leave the option to the user which i think is better.