Wrap the flask API in a websockets implementation that can deliver messages to individual socket clients
Attach a file by drag & drop or click to upload