This commit is contained in:
2020-09-01 15:33:37 +08:00
parent 72a6656647
commit dae8325024
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ class WebSocket extends Server
*/
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;
parent::__construct($host, $port, $mode, $sock_type);
}