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:
var form_data = new FormData($('#my_form')[0]);
socket.emit('handle_form',{data:form_data});
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 as an entire replacement for ajax ?