process.php 671 B

123456789101112131415161718192021
  1. <?php
  2. use Webman\Push\Server;
  3. return [
  4. 'server' => [
  5. 'handler' => Server::class,
  6. 'listen' => config('plugin.webman.push.app.websocket'),
  7. 'count' => 1, // 必须是1
  8. 'reloadable' => false, // 执行reload不重启
  9. 'constructor' => [
  10. 'api_listen' => config('plugin.webman.push.app.api'),
  11. 'app_info' => [
  12. config('plugin.webman.push.app.app_key') => [
  13. 'channel_hook' => config('plugin.webman.push.app.channel_hook'),
  14. 'app_secret' => config('plugin.webman.push.app.app_secret'),
  15. ],
  16. ]
  17. ]
  18. ]
  19. ];