// 登录 var login_data = JSON.stringify({"type":"login","client_name":name,"room_id":<?php echo isset($_GET) ? $_GET : 1?>}); console.log("websocket握手成功,发送登录数据:"+login_data); ws.send(login_data); reconnect ...