In JS socket.io, there's the third param in the emit function of client:
client.emit("event name",{some:"data"},function myack(value){
})
The myack function is passed to server and called with some returning value:
//server side:
myack("foobar");
...
However, I don't see this feature in Python socket.io: https://python-socketio.readthedocs.io/en/latest/api.html#asyncserver-class
Can ack function be passed to Python socket.io server from clientside JS socket.io? Supposed to be using the same application protocol.
Aucun commentaire:
Enregistrer un commentaire