update readme

This commit is contained in:
yggverse 2024-04-24 22:29:07 +03:00
parent 1b3e81d15c
commit c411291150

View File

@ -1,8 +1,8 @@
# nps-php # nps-php
PHP 8 / Composer Library for NPS Protocol (see also [nex-php](https://github.com/YGGverse/nex-php)) PHP 8 / Composer Library for NPS Protocol
Like Titan for Gemini, NPS is the satellite for Nex protocol\ Like Titan for Gemini, NPS is the satellite for Nex protocol (see also [nex-php](https://github.com/YGGverse/nex-php))\
it uses dot in line to signal the package ending. it uses dot in line to signal the package ending.
## Specification ## Specification
@ -47,13 +47,15 @@ Define handler function as the argument to process application logic dependent o
``` php ``` php
$server->start( $server->start(
function ( function (
string $content,
string $request, string $request,
string $connect string $connect
) { ) {
printf( printf(
'connection: %s request: %s', 'connection: %s request: %s content: %s',
$connect, $connect,
$request $request,
$content
); );
} }
); );