flask main loop integration
basic websocket interaction