You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
^ "onMessageee"
^ "Swoole\WebSocket\Server"
^ 1
^ "{"s":"ws","r":"ping","d":{},"p":"ed8b48cbbf3b60dbc3ec324c22b45bd7"}"
Warning: Use of undefined constant GAME_ROOT - assumed 'GAME_ROOT' (this will throw an Error in a future version of PHP) in /var/www/html/app/Controller/WebSocketController.php on line 29
Notice: Undefined index: GAME_ROOT in /var/www/html/app/Controller/WebSocketController.php on line 29
^ "/var/www/html"
^ "GAME_ROOT"
^ null
The text was updated successfully, but these errors were encountered:
在
php ./bin/hyperf.php start
启动的清空下能够在websocket的控制器内读取到在./bin/hyperf.php
中定义的常量,定义代码如下:
读取代码如下
输出内容如下:
在使用
php ./bin/hyperf.php server:watch
启动时输出内容如下输出内容如下
The text was updated successfully, but these errors were encountered: