The specific calling method is: I use java as the client to call python's server-side
Here is the client java code
socket.emit("hello", "world", new AckWithTimeout(5000) { @Override public void onTimeout() { // ... } @Override public void onSuccess(Object... args) { // ... I can't convert it into a usable value when I use it, when I debugged, I found that the args parameter is a numeric object reference Object[0] } });
This is the server side python code
sio.emit('result', {key: ",".join(result_list)})
Please help to answer the above questions, thank you!
The specific calling method is: I use java as the client to call python's server-side
Here is the client java code
socket.emit("hello", "world", new AckWithTimeout(5000) { @Override public void onTimeout() { // ... } @Override public void onSuccess(Object... args) { // ... I can't convert it into a usable value when I use it, when I debugged, I found that the args parameter is a numeric object reference Object[0] } });
This is the server side python code
sio.emit('result', {key: ",".join(result_list)})
Please help to answer the above questions, thank you!