I’m working with Python 3 to receive chat messages.
Sometimes, there can be multiple chat messages sent in with one recv() command. In this case, I want to be able to split these messages into a list so that I can iterate over them individually. However, I can’t get them to split.
I’ve tried both splitlines() as well as split(’\r\n’), but they will ultimately remain as a single string rather than a list of strings.
Is there something else I need to split on?