Browse Source

update readme

main
yggverse 7 months ago
parent
commit
12453064d7
  1. 6
      README.md

6
README.md

@ -129,9 +129,9 @@ Get current `Pending` function, `null` by default @@ -129,9 +129,9 @@ Get current `Pending` function, `null` by default
#### 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
$server->setHandler(
@ -155,7 +155,7 @@ $server->setHandler( @@ -155,7 +155,7 @@ $server->setHandler(
);
}
return "thank you!\n\r";
return 'thank you!';
}
);
```

Loading…
Cancel
Save