python-socketio

How can I render new Template with Flask Socket-IO join event?

How can I render new Template with Flask Socket-IO join event? Question: I’m programming a litte multiplayer game with Flask Socket-IO. If the client is on the website, he connects to the websocket. On the start page the client should type a nickname in the field and press the button. Then the client tries to …

Total answers: 1

Python socketIO callback is lost: `Unknown callback received, ignoring.`

Python socketIO callback is lost: `Unknown callback received, ignoring.` Question: I have a Flask-SocketIO server that connects with a number of python-socketIO clients. I want to know which clients are online. To get to know this, I am sending a ping event from the server with a callback function to process the response. The structure …

Total answers: 1

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

How to block a python-socketio client until a server event response is received? Question: 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 …

Total answers: 2

Why is loop.create_task taking so long to execute?

Why is loop.create_task taking so long to execute? Question: I am trying to emulate the reading of a NFC chip by pressing the cmd key in a little python script that acts as a socket-io server. It’s job is to notify a client after the cmd key has been pressed. It works, but emulate_nfc_tag() takes …

Total answers: 1

How to send message on python-socketio

How to send message on python-socketio Question: The API documentation (https://python-socketio.readthedocs.io/en/latest/intro.html) provides examples of the server and client. But if you run them, you will not start messaging. And I’m not sure how to set it up. How do I set up messaging so I can output their body through the print function? client.py import …

Total answers: 2