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
|
||||
|
||||
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.
|
||||
|
||||
## Specification
|
||||
@ -47,13 +47,15 @@ Define handler function as the argument to process application logic dependent o
|
||||
``` php
|
||||
$server->start(
|
||||
function (
|
||||
string $content,
|
||||
string $request,
|
||||
string $connect
|
||||
) {
|
||||
printf(
|
||||
'connection: %s request: %s',
|
||||
'connection: %s request: %s content: %s',
|
||||
$connect,
|
||||
$request
|
||||
$request,
|
||||
$content
|
||||
);
|
||||
}
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user