How to block a python-socketio client until a server event response is received?

I’m trying to write a python script that connects to a nodejs server using socket.io package. The server receives the events from the client and responds with other events. As an example, let’s say that the client sends an "getHome" events and the server responds with a "homePage" event with some data. What I want… Read More How to block a python-socketio client until a server event response is received?