Based on the HTML5 websocket&canvas  paint