title: laravel-echo-server user not joining, not subscribed to the socket server
body: <p>Laravel echo server is started event is broadcasted but users are not able to join channel hence not able to listen the event.</p>
  
  <pre><code>1. ExampleEvent file:
  class ExampleEvent implements ShouldBroadcast
  {
      use Dispatchable, InteractsWithSockets, SerializesModels;
  
      /**
       * Create a new event instance.
       *
       * @return void
       */
      public function __construct()
      {
          //
      }
  
      /**
       * Get the channels the event should broadcast on.
       *
       * @return \Illuminate\Broadcasting\Channel|array
       */
      public function broadcastOn()
      {
          return new Channel('test-event');
      }
  
      public function broadcastWith()
      {
          return [
              'data' =&gt; 'key'
          ];
      }
  }
  
  2. Laravel-echo-server.json file
  {
      "authHost": "http://localhost",
      "authEndpoint": "/broadcasting/auth",
      "clients": [],
      "database": "redis",
      "databaseConfig": {
          "redis": { },
          "sqlite": {
              "databasePath": "/database/laravel-echo-server.sqlite"
          }
      },
      "devMode": true,
      "host": null,
      "port": "6001",
      "protocol": "http",
      "socketio": {},
      "sslCertPath": "",
      "sslKeyPath": "",
      "sslCertChainPath": "",
      "sslPassphrase": "",
      "subscribers": {
          "http": true,
          "redis": true
      },
      "apiOriginAllow": {
          "allowCors": false,
          "allowOrigin": "",
          "allowMethods": "",
          "allowHeaders": ""
      }
  }
  
  3. boostrap.js file laravel echo section
  
  import Echo from 'laravel-echo'
  
  window.io = require('socket.io-client');
  
  window.Echo = new Echo({
      broadcaster: 'socket.io',
      host: window.location.hostname + ':6001'
  });
  
  window.Echo.channel('test-event')
      .listen('ExampleEvent', (e) =&gt; {
          console.log(e);
      });
  
  4.Channels.php file
  &lt;?php
  
  Broadcast::channel('App.User.{id}', function ($user, $id) {
      return (int) $user-&gt;id === (int) $id;
  });
  
  Broadcast::channel('test-event', function ($user, $id) {
      return true;
  });
  
  5.env file redis section
  
  BROADCAST_DRIVER=redis
  CACHE_DRIVER=file
  QUEUE_CONNECTION=sync
  SESSION_DRIVER=file
  SESSION_LIFETIME=120
  
  REDIS_HOST=127.0.0.1
  REDIS_PASSWORD=null
  REDIS_PORT=6379
  
  Output: When i open http://127.0.0.1:8000/test-broadcast and on other browser http://127.0.0.1:8000/ not shown that user joined the channel etc and event details is not listen on other browser. Also not getting any error on command line or console log.
  
  L A R A V E L  E C H O  S E R V E R
  
  version 1.5.0
  
  ⚠ Starting server in DEV mode...
  
  ✔  Running at localhost on port 6001
  ✔  Channels are ready.
  ✔  Listening for http events...
  ✔  Listening for redis events...
  
  Server ready!
  
  Channel: test-event
  Event: App\Events\ExampleEvent
  Channel: test-event
  Event: App\Events\ExampleEvent
  Channel: test-event
  Event: App\Events\ExampleEvent
  Channel: test-event
  </code></pre>