We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug 在http控制器调用 /** @var \Swoole\WebSocket\Server $server / $server->push(1, 'hello, welcome! :)'); 提示Undefined variable $server bean配置文件 'wsServer' => [ 'class' => WebSocketServer::class, 'port' => 18308, 'listener' => [ //'rpc' => bean('rpcServer'), 'tcp' => bean('tcpServer'), ], 'on' => [ // Enable http handle SwooleEvent::REQUEST => bean(RequestListener::class), // Enable task must add task and finish event SwooleEvent::TASK => bean(TaskListener::class), SwooleEvent::FINISH => bean(FinishListener::class) ], //'debug' => 1, 'debug' => env('SWOFT_DEBUG', 0), / @see WebSocketServer::$setting */ 'setting' => [ 'task_worker_num' => 6, 'task_enable_coroutine' => true, 'worker_num' => 6, 'log_file' => alias('@runtime/swoole.log'), // 'open_websocket_close_frame' => true, ],
The text was updated successfully, but these errors were encountered:
stelin
inhere
No branches or pull requests
Describe the bug
在http控制器调用
/** @var \Swoole\WebSocket\Server $server /
$server->push(1, 'hello, welcome! :)');
提示Undefined variable $server
bean配置文件
'wsServer' => [
'class' => WebSocketServer::class,
'port' => 18308,
'listener' => [
//'rpc' => bean('rpcServer'),
'tcp' => bean('tcpServer'),
],
'on' => [
// Enable http handle
SwooleEvent::REQUEST => bean(RequestListener::class),
// Enable task must add task and finish event
SwooleEvent::TASK => bean(TaskListener::class),
SwooleEvent::FINISH => bean(FinishListener::class)
],
//'debug' => 1,
'debug' => env('SWOFT_DEBUG', 0),
/ @see WebSocketServer::$setting */
'setting' => [
'task_worker_num' => 6,
'task_enable_coroutine' => true,
'worker_num' => 6,
'log_file' => alias('@runtime/swoole.log'),
// 'open_websocket_close_frame' => true,
],
The text was updated successfully, but these errors were encountered: