IlluminateBroadcastingBroadcastException Failed to connect to Pusher

  laravel, php

How to disable event when web-socket is not served?

Route::group(['middleware' => ['auth:api', 'role:Admin']], function () {
  broadcast(new WebSocketEvent('toxen-update'));
});

Source: Laravel

Leave a Reply