update readme

This commit is contained in:
yggverse 2024-04-25 07:04:15 +03:00
parent 2ad7d32751
commit 49699d3fd8

View File

@ -23,13 +23,14 @@ Build interactive server instance to listen NPS protocol connections!
$server = new \Yggverse\Nps\Server; $server = new \Yggverse\Nps\Server;
``` ```
Provide optional `host`, `port`, `size`, `line` and `live` arguments in constructor.\ Provide optional `host`, `port`, `size`, `line` and `live` arguments in constructor:
Alternatively, just use available setters documented bellow after object initiation.
``` php ``` php
$server = new \Yggverse\Nps\Server('127.0.0.1', 1915); $server = new \Yggverse\Nps\Server('127.0.0.1', 1915);
``` ```
Alternatively, just use available setters documented bellow after object initiation
#### Server::setHost #### Server::setHost
Bind server host to listen incoming connections, `127.0.0.1` by default Bind server host to listen incoming connections, `127.0.0.1` by default