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
1b3e81d15c
commit
c411291150
10
README.md
10
README.md
@ -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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user