官网手册这里是这么写的
<?php
namespace app\http;
use think\worker\Server;
class Worker extends Server
{
protected $socket = 'http://0.0.0.0:2346';
public function onMessage($connection,$data)
{
$connection->send(json_encode($data));
}
}
但这种写法,只能输出html和json。那如果我需要输出xm
l的话,需要怎么操作呢?