Replies: 1 comment
-
Are you using eventlet or gevent? Any chance you have blocking operations in your server? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Hello. I am currently developing an app where I require quite extensive exchange of data between a python application and the Unity game engine. I made a test implementation with Flask-SocketIO and this socket.io unity client. The setup of both was pretty easy and the connection worked well. However, now the problem. I wanted to see how quickly and effectively the data exchange works and wrote an application that emits a message every 0.1 seconds from the unity client. Then I noticed that on the Flask-SocketIO side, a message only arrives every 2 seconds. I have tried around and it seems to be the fastest there is a message logged on server side. Interestingly, the emitting of the messages on the client side seems to work well. I coded it, so the client sends 100 messages and then stops. When the client has been finished for a long time, messages still arrive at the server (in 2 second steps). So they are in some kind of queue.
I am working on version 4.3.2 of Flask-SocketIO. This was neccessary to connect with the Unity client.
Server code:
Client code:
Logs
Beta Was this translation helpful? Give feedback.
All reactions