I have a simple Websockets server in python, it receives messages from Android app clients, I tried to make the message payload from the client in JSON but I felt. It is only wo
I tried this way and it worked for me, I converted the message into a dictionary using ast and then used the new message as I wanted:
ast
formattedMessage = ast.literal_eval(format(message)) self.write_message(formattedMessage["name"])