Wrap the flask API in a websockets implementation that can deliver messages to individual socket clients