Distributed Socket Framework Based on Swoole
- It supports MySQL master/slave architecture.
- It supports Redis master/slave architecture.
- It supports CURL.
<?php
namespace App;
use Xinmoy\Server\Server as XinmoyServer;
class Server extends XinmoyServer {
public function onTest($server, $fd, $reactor_id, $data) {
$this->send($fd, 'test');
}
}
{
"type": "test",
"data": null
}
For more information, please visit Wiki.