flask socket integration, rough proof of concept demo