mirror of
https://github.com/YGGverse/nps-php.git
synced 2025-01-15 17:30:08 +00:00
update readme
This commit is contained in:
parent
5e662c33d9
commit
12453064d7
@ -129,9 +129,9 @@ Get current `Pending` function, `null` by default
|
|||||||
|
|
||||||
#### Server::setHandler
|
#### Server::setHandler
|
||||||
|
|
||||||
Define basic application logic on complete packet received.
|
Define basic application logic on complete packet received
|
||||||
|
|
||||||
Could be also defined as [Server::start](https://github.com/YGGverse/nps-php#serverstart) argument.
|
* could be also defined as [Server::start](https://github.com/YGGverse/nps-php#serverstart) argument
|
||||||
|
|
||||||
``` php
|
``` php
|
||||||
$server->setHandler(
|
$server->setHandler(
|
||||||
@ -155,7 +155,7 @@ $server->setHandler(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return "thank you!\n\r";
|
return 'thank you!';
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user