composer require beyondcode/laravel-websockets
php artisan websockets:serve
you should remove the node_modules folder and then change package.json manually and downgrade the version of this ( "pusher-js": "^4.3.1" ) then install again with npm install.