socket.io 是对 websocket 的封装,当你在客户端使用 socket.io 那么服务器也要对应的使用
使用方法:
客户端:
socket.emit() 是提交数据,socket.on() 是用来接收数据
服务器: