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
2ad7d32751
commit
49699d3fd8
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user