How to start websocket server in laravel

You can start websocket server in laravel using php artisan command. Move to your project directory and run php artisan websockets:serve command in command prompt to run the websockets in laravel

Answers 2
  • Start the Laravel WebSocket server

    php artisan websockets:serve
    
    0

    You can use php artisan websockets:serve command to start the websockets in Laravel

  • Start the Laravel websocket server with port

    php artisan websockets:serve --port=3030
    
    0

    This artisan command will help you to run the websockets with the specific port which you define in the command. It will run the websockets on port 3030.

  • Back to code snippet queries related laravel