My application handels a countdown, which refreshes all the time. The countdown itself is handeld by the server, like so: Currently I am catching the event data in JavaScript like this: Q.: Is there a way to catch socket.io events without JavaScript? If so, how could I do this? Answer If you are looking to replace javascript with python within
Tag: flask-socketio
How do I pass JSON data retrieved with SocketIO to my Routes in React?
I need to get the variables in my routes to update from the JSON data and also sometimes emit data, but I haven’t figured out how to pass response to my Routes for accessing. App.js file where the JSON is retrieved: Routes.js where the Routes are created: I get the JSON data from my Flask backend using SocketIO JSON data
How to access formData in flask sent using websockets?Flask-SocketIO
How to access form data sent to Flask using web sockets? I receive invalid frame header in google chrome developer tools->console. Extract from my javascript code: How would I access, say ‘title’ field in my_form from flask ? request.form throws the same error “Invalid frame header” One more question, is it good to use web sockets for form submission and