This commit is contained in:
2020-12-15 17:03:20 +08:00
parent 4699ca29af
commit 272bea30ab
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -56,7 +56,7 @@ class OnClose extends Callback
if (!($server instanceof WServer) || !$server->isEstablished($fd)) {
return;
}
$node = $router->search(Socket::CLOSE . '::event', 'sw:socket');
$node = $router->search(Socket::CLOSE . '::event', 'sw::socket');
if ($node instanceof Node) {
$node->dispatch();
}
@@ -82,7 +82,7 @@ class OnClose extends Callback
return [null, null];
}
$router = Snowflake::app()->getRouter();
$node = $router->search(Socket::HANDSHAKE . '::' . null, 'sw:socket');
$node = $router->search(Socket::HANDSHAKE . '::' . null, 'sw::socket');
if ($node === null) {
return [null, null];
}