title: Socket.io is not listening in laravel echo server
body: <p>I'm trying to implement chat functionality with laravel echo server using socket.io but unable to listen to the event</p>
  <p>Here is my below code</p>
  <p>bootstrap.js</p>
  <pre><code>import Echo from 'laravel-echo'
  
  window.Echo = new Echo({
      broadcaster: 'socket.io',
      host: 'http://127.0.0.1:6001',
      auth: {
          headers: {
              Authorization : 'my_bearer token'
          }
      }
  });
  </code></pre>
  <p>app.js</p>
  <pre><code>require('./bootstrap');
  
  import Vue from 'vue';
  
  const app = new Vue({
      el: '#app',
      data: {
          message:'',
          chat:{
              message:[]
          }
      },
      mounted() {
          console.log('here i can able to subscribe private channel')
          Echo.private('user.1')
              .listen('App\\Events\\SendChatMessage', (e) =&gt; {
                  console.log('trying first method', e); //unable to listen
              })
              .listen('SendChatMessage', (e) =&gt; {
                  console.log('trying second method', e); //unable to listen
              });
      } 
  });
  </code></pre>
  <p>Event SendChatMessage.php</p>
  <pre><code>public function broadcastOn()
  {
     return new PrivateChannel('user.1');
  }
  </code></pre>
  <p>.env</p>
  <pre><code>BROADCAST_DRIVER=redis
  QUEUE_CONNECTION=redis
  </code></pre>
  <p>laravel-echo-server.json</p>
  <pre><code>{
      &quot;authHost&quot;: &quot;http://127.0.0.1:8000&quot;,
      &quot;authEndpoint&quot;: &quot;/broadcasting/auth&quot;,
      &quot;clients&quot;: [
          {
              &quot;appId&quot;: &quot;3f4e63443c11bb0d&quot;,
              &quot;key&quot;: &quot;59e850fecad73c2025c6bab9f2b9ce06&quot;
          }
      ],
      &quot;database&quot;: &quot;redis&quot;,
      &quot;databaseConfig&quot;: {
          &quot;redis&quot;: {
              &quot;port&quot;: &quot;6379&quot;,
              &quot;host&quot;: &quot;127.0.0.1&quot;
          },
          &quot;sqlite&quot;: {
              &quot;databasePath&quot;: &quot;/database/laravel-echo-server.sqlite&quot;
          }
      },
      &quot;devMode&quot;: true,
      &quot;host&quot;: null,
      &quot;port&quot;: &quot;6001&quot;,
      &quot;protocol&quot;: &quot;http&quot;,
      &quot;socketio&quot;: {},
      &quot;sslCertPath&quot;: &quot;&quot;,
      &quot;sslKeyPath&quot;: &quot;&quot;,
      &quot;sslCertChainPath&quot;: &quot;&quot;,
      &quot;sslPassphrase&quot;: &quot;&quot;,
      &quot;subscribers&quot;: {
          &quot;http&quot;: true,
          &quot;redis&quot;: true
      },
      &quot;apiOriginAllow&quot;: {
          &quot;allowCors&quot;: true,
          &quot;allowOrigin&quot;: &quot;http://localhost:80&quot;,
          &quot;allowMethods&quot;: &quot;GET, POST&quot;,
          &quot;allowHeaders&quot;: &quot;Origin, Content-Type, X-Auth-Token, X-Requested-With, Accept, Authorization, X-CSRF-TOKEN, X-Socket-Id&quot;
      }
  }
  </code></pre>
  <p>My command prompt</p>
  <p>php artisan queue:listen</p>
  <pre><code>[2021-03-30 23:11:42][feQuvUDNmDg8oEUR6mwXZDQOvzpjLCbZ] Processing: App\Events\SendChatMessage
  [2021-03-30 23:11:42][feQuvUDNmDg8oEUR6mwXZDQOvzpjLCbZ] Processed:  App\Events\SendChatMessage
  </code></pre>
  <p>laravel-echo-server start</p>
  <pre><code>[11:10:28 PM] - 74J_fL-s4HNFXv3xAAAP authenticated for: private-user.1
  [11:10:28 PM] - 74J_fL-s4HNFXv3xAAAP joined channel: private-user.1
  Channel: messer_database_private-user.1
  Event: App\Events\SendChatMessage
  </code></pre>
  <p>channel.php</p>
  <pre><code>Broadcast::channel('user.{id}', function ($user, $id) {
      return (int) $user-&gt;id === (int) $id;
  });
  </code></pre>
  <p>BroadcastServiceProvider</p>
  <pre><code>public function boot()
  {
     Broadcast::routes(['middleware' =&gt; ['auth:api']]);
  
     require base_path('routes/channels.php');
  }
  </code></pre>
  <p>Version</p>
  <pre><code>Laravel: ^8.12
  predis/predis&quot;: &quot;^1.1
  
  Package.json
  laravel-echo&quot;: &quot;^1.10.0
  socket.io-client&quot;: &quot;^4.0.0
  vue&quot;: &quot;^2.6.12
  </code></pre>
  <p>Any help will be appreciate</p>