I have a Python Flask server that I want to connect to a Java client through socket programming. I am able to connect to the server with the Java client and send a message, but the Java client is unable to receive a message back from the Python Server.
Here are some functions from the Python Flask Server:
Flask Functions
I’m using Flask-SocketIO.
Now here is the Java client when I connected through port 53605:
Java Client
As you can see, I can connect. But after sending a message, I didn’t receive anything back, and the readUTF method was just hanging instead. I expected readUTF to output “connected” as the function from the Flask Server is supposed to do.