提供实时比分更新 function,创建WebSocket连接varws=newWebSocket,ws,localhost,8080,打开WebSocket连接时触发ws.onopen=function,console.log,连接已打开