This commit is contained in:
2020-11-17 16:45:08 +08:00
parent d4ffa8c848
commit be04bf2e35
9 changed files with 27 additions and 37 deletions
+1 -2
View File
@@ -36,8 +36,7 @@ class OnMessage extends Callback
$frame->data = json_decode($frame->data, true);
}
/** @var AWebsocket $manager */
$manager = Snowflake::app()->annotation->get('websocket');
$manager = Snowflake::app()->annotation->websocket;
if (!isset($frame->data['route'])) {
throw new \Exception('Fromat errr.');
}