mirror of
https://github.com/YGGverse/nex-php.git
synced 2026-03-31 17:55:31 +00:00
fix handler function response
This commit is contained in:
parent
9daef40268
commit
52b43a252d
2 changed files with 12 additions and 1 deletions
|
|
@ -73,12 +73,15 @@ $server->start(
|
|||
function (
|
||||
string $request,
|
||||
string $connect
|
||||
) {
|
||||
): ?string
|
||||
{
|
||||
printf(
|
||||
'connection: %s request: %s',
|
||||
$connect,
|
||||
$request
|
||||
);
|
||||
|
||||
return null; // null|string response
|
||||
}
|
||||
);
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue