This commit is contained in:
2020-12-15 17:14:02 +08:00
parent 875b0a43f3
commit c8d9cfee40
4 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ class OnMessage extends Callback
throw new Exception('Format error.');
}
$router = Snowflake::app()->getRouter();
$node = $router->search(Socket::MESSAGE . '::' . $route, 'sw::socket');
$node = $router->search('/' . Socket::MESSAGE . '::' . $route, 'sw::socket');
if ($node === null) {
throw new Exception('Page not found.');
}