the interactive client simultaneously reads and writes, while typing a message if you are delivered a message it will interrupt your typing and truncate the message you send. see image below
in this case, only "orld" would be sent by the bot
I know the message format looks a little different, I'm using photon_clinet.py (the client I'm designing) from my personal fork. but this also happens with the default interactive_client.py, I came across it cause I'm trying to fix it in mine and posted this cause I don't know how to solve it.
Yes, basically what we want is to read input from the user and print in the same time (from two different thread), something similar to this StackOverflow question.
the interactive client simultaneously reads and writes, while typing a message if you are delivered a message it will interrupt your typing and truncate the message you send. see image below
in this case, only "orld" would be sent by the bot
I know the message format looks a little different, I'm using photon_clinet.py (the client I'm designing) from my personal fork. but this also happens with the default interactive_client.py, I came across it cause I'm trying to fix it in mine and posted this cause I don't know how to solve it.