phplaravelwebsocketxampp-vm

Cannot access laravel-websockets dashboard on xampp-vm


I'm trying to run laravel-websockets on XAMPP-VM, however, I cannot access localhost:6001/laravel-websockets debugging dashboard after running php artisan websockets:serve.

Inside the console I am getting Starting the WebSocket server on port 6001... which sort of indicates that the server is running.

In XAMPP-VM config, I did define port forwarding as *:6001 -> 6001 (Over SSH) (Did try other ports 6002 -> 6001 (Over SSH), still no luck.).

If anyone could direct me in a right direction or point out what I am doing wrong, that would be great.


Solution

  • Solution in my case was following:

    App\Providers\BroadcastServiceProvider::class, was commented out inside config\app.php.

    Secondly, the url for it was localhost:8080/laravel-websockets