# 关于
服务端的实现基于 workman。
使用 `stream_socket_*` 实现了一个简单的同步 client ,目前只支持 workman 的 frame 协议。使用示例:[https://github.com/caylof/php-rpc](https://github.com/caylof/php-rpc)
# 服务定义说明
服务方法的定义需要遵循如下方式函数签名> process\RpcServer::class,
'listen' => 'frame://0.0.0.0:2345',
'count' => 1,
],
```
- 定义一个服务$name];
}
}
```
- 重启 webman 完成服务端 server
```shell
proto user worker listen$arguments);
}
}
```
新建文件 `app/rpc/client/TestSrv.php`,作为 client 端服务类,只需继续基类:
```php
<?