1、轮询
2、长轮询
3、flash的socket
4、websocket html5提出的用于全双工通信的协议 api(js编写的)
客户端(浏览器 必须支持html5)
服务器端(支持websocket)