Datatype fix - ws engine

This commit is contained in:
fbsanchez 2019-12-13 11:58:12 +01:00
parent 3b5ebd0bf7
commit 5f32bfdb64
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ class WSManager extends WebSocketServer
*/ */
public function __construct( public function __construct(
$listen_addr, $listen_addr,
$listen_port, int $listen_port,
$connected=[], $connected=[],
$process=[], $process=[],
$processRaw=[], $processRaw=[],

View File

@ -139,7 +139,7 @@ $ws = new WSManager(
// Bind address. // Bind address.
$config['ws_bind_address'], $config['ws_bind_address'],
// Bind port. // Bind port.
$config['ws_port'], (int) $config['ws_port'],
// Connected handlers. // Connected handlers.
['gotty' => 'proxyConnected'], ['gotty' => 'proxyConnected'],
// Process handlers. // Process handlers.