title: Install and Configure laravel-echo and pusher-js in VueJS
body: <p>I'm using laravel-echo and pusher-js in a projetct with Laravel and VueJS and it works.
  But now I need to broadcast in a VueJS project without laravel (a pure VueJS project).<br />
  I don't know how to install and configure laravel-echo and laravel-pusher in a pure project VueJS.<br />
  I try to do llike this, but don't works:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import Echo from "laravel-echo";
  
  window.Pusher = require("pusher-js");
  
  window.Echo = new Echo({
    broadcaster: "pusher",
    key: "myappkey",
    cluster: "mt1",
    host: window.location.hostname + ":6001",
  });
  
  Vue.use(Echo);</code></pre>
  </div>
  </div>
  </p>
  <p>The 2 packages are in my package.json:</p>
  <pre><code>&quot;laravel-echo&quot;: &quot;^1.11.2&quot;,
  &quot;pusher-js&quot;: &quot;^7.0.3&quot;,
  </code></pre>