原理: [http://www.ruanyifeng.com/blog/2017/05/websocket.html] 代码: [http://www.cnblogs.com/xdp-gacl/p/5193279.html]