What is Ajax: http://www.seguetech.com/what-is-ajax-and-where-is-it-used-in-technology/ Single Page Application: http://www.seguetech.com/what-is-a-single-page-application/ Client-Side vs. Server
几个基本的流程 检查浏览器是否支持websocket,即判断'WebSocket' in window和'MozWebSocket' in window值是否为true,true就是浏览器支持websocket,这一步骤可以发生在mounted当中。客户端与服务器建立连接。new WebSocket(url)即创建新的websocket实例,url为服务端提供,用来和服务器建立websocket