);
ws.onmessage = function(e){
alert(e.data);
};
```
就能连上wm的oncontent方法了,但是我现在想要在后端连接wm自动弹出推送消息$client)exit("can not connect");
// 模拟超级用户,以文本协议发送数据,注意Text文本协议末尾有换行符(发送的数据中最好有能识别超级用户的字段),这样在Event.php中的onMessage方法中便能收到这个数据,然后做相应的处理即可
fwrite($client, '{"type":"re_login","content":"hello all", "user":