title: Laravel Echo with pusher disconnect after 30 seconds
body: <p>i have a game project on github:
  <a href="https://github.com/ynizon/lemming" rel="nofollow noreferrer">https://github.com/ynizon/lemming</a></p>
  <p>I m using pusher to send next player or message event.
  When i load my browser, it works. But, if i wait 30 seconds, the echo.pusher.connection.state will be disconnected.
  On the <a href="https://github.com/ynizon/lemming/blob/main/resources/js/app.js" rel="nofollow noreferrer">https://github.com/ynizon/lemming/blob/main/resources/js/app.js</a></p>
  <p>I have added (to fix this):</p>
  <pre><code> window.Echo.connector.pusher.connection.bind('state_change', function (states) {
                  if (states.current === 'disconnected') {
                      window.Echo.connector.pusher.connect();
                  }
              });
  </code></pre>
  <p>But, i think it s not the good method.
  Do you have the same problem than me ? How correct this ?</p>
  <p>My env file have
  BROADCAST_DRIVER=pusher
  QUEUE_CONNECTION=sync</p>
  <p>Thanks</p>