Skip to content
\n

my environment

\n
PHP VERSION: 8.1.13\nLARAVEL: 8.83\nLARAVEL WEBSOCKET PACKAGE: ^1.12\n
\n

this is supervisor config which is running websockets:serve command:

\n
[program:laravel-websocket]\nprocess_name=%(program_name)s_%(process_num)02d\ncommand=php /var/www/secure/v2.appio.me/artisan websockets:serve\nautostart=true\nautorestart=true\nstopasgroup=true\nkillasgroup=true\nuser=root\nnumprocs=1\nredirect_stderr=true\nstdout_logfile=/var/www/secure/v2.appio.me/storage/logs/websockets.log\nstopwaitsecs=3600\n
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

found it..
\nthis link page in document tells that if APP_DEBUG is set to true, then we can see all incoming & outgoing connection request in console when we run php artisan websockets:serve command, but the websockets:serve command has other options as well.

\n
Description:\n  Start the Laravel WebSocket Server\n\nUsage:\n  websockets:serve [options]\n\nOptions:\n      --host[=HOST]      [default: \"0.0.0.0\"]\n      --port[=PORT]      [default: \"6001\"]\n      --debug           Forces the loggers to be enabled and thereby overriding the app.debug config setting\n  -h, --help            Display help for the given command. When no command is given display help for the list command\n  -q, --quiet           Do not output any message\n  -V, --version         Display this application version\n      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction  Do not ask any interactive question\n      --env[=ENV]       The environment the command should run under\n  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n
\n

if php artisan websockets:serve --debug command is run, then everything will be logged, despite the value of APP_DEBUG in .env file or config('app.debug').

","upvoteCount":1,"url":"https://github.com/beyondcode/laravel-websockets/discussions/1081#discussioncomment-4599006"}}}
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
Discussion options

You must be logged in to vote

found it..
this link page in document tells that if APP_DEBUG is set to true, then we can see all incoming & outgoing connection request in console when we run php artisan websockets:serve command, but the websockets:serve command has other options as well.

Description:
  Start the Laravel WebSocket Server

Usage:
  websockets:serve [options]

Options:
      --host[=HOST]      [default: "0.0.0.0"]
      --port[=PORT]      [default: "6001"]
      --debug           Forces the loggers to be enabled and thereby overriding the app.debug config setting
  -h, --help            Display help for the given command. When no command is given display help for the list command
  -q, --quiet           D…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rajeshtva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant