title: Laravel Echo How to take an action when the users joins a channel?
body: <p>Using Laravel 5.5, vue.js and laravel echo.</p>
  
  <p>I want to apply an instruction that something happens whenever the user, that is attempting to join the channel, has a successful join.</p>
  
  <p>In my case, if it was a successful join it will add an object to an array.</p>
  
  <pre><code>Echo.join('chat' + e.thread.id)
      .listen('ThreadPosted', (e) =&gt; {
           console.log("ThreadPosted");
       });
  </code></pre>
  
  <p>How can this be achieved?</p>