改名
This commit is contained in:
@@ -37,7 +37,7 @@ class Http extends Server
|
|||||||
*/
|
*/
|
||||||
public function __construct($application, $host, $port = null, $mode = null, $sock_type = null)
|
public function __construct($application, $host, $port = null, $mode = null, $sock_type = null)
|
||||||
{
|
{
|
||||||
$application->set($host . ':' . $port, $this);
|
$application->set(Http::class, $this);
|
||||||
$this->application = $application;
|
$this->application = $application;
|
||||||
parent::__construct($host, $port, $mode, $sock_type);
|
parent::__construct($host, $port, $mode, $sock_type);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class WebSocket extends Server
|
|||||||
*/
|
*/
|
||||||
public function __construct($application, $host, $port = null, $mode = null, $sock_type = null)
|
public function __construct($application, $host, $port = null, $mode = null, $sock_type = null)
|
||||||
{
|
{
|
||||||
$application->set($host . ':' . $port, $this);
|
$application->set(WebSocket::class, $this);
|
||||||
$this->application = $application;
|
$this->application = $application;
|
||||||
parent::__construct($host, $port, $mode, $sock_type);
|
parent::__construct($host, $port, $mode, $sock_type);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user