Messing with html5 websockets using flask and redis