miguelgrinberg / Flask-SocketIO

Socket.IO integration for Flask applications.
MIT License
5.31k stars 888 forks source link

get_received(namespace=None) does not returns the messages #2006

Closed pravesh-sharma closed 10 months ago

pravesh-sharma commented 10 months ago

Describe the bug After recent update in python-socketio, Flask-SocketIO's get_received(namespace=None) function is not returning the messages received from server it just returns an empty list. However, with older version of python-socketio everything works.

Additional context We are using this function to write API test case for our socket implementation.

miguelgrinberg commented 10 months ago

Can you test the main branch and report back if the problem is addressed? I'll issue a new release once you confirm that the fix works well for you.

pravesh-sharma commented 10 months ago

@miguelgrinberg Thanks for such a quick response and fix really appreciate it. Tested on main branch and it is working. You can issue a new release.

miguelgrinberg commented 10 months ago

Thanks. Release 5.3.6 is out with this fix!

shivansh-vishwakarma commented 2 months ago

Hi @miguelgrinberg I feel like the issue still persist, can you please check and update. I am on version 5.3.6. After emitting event to SocketIOTestClient the get_received(namespace=None) still gives [].

shivansh-vishwakarma commented 2 months ago

Moving the conversation to https://github.com/miguelgrinberg/Flask-SocketIO/issues/2063