title: Laravel Echo Server and net::ERR_SSL_PROTOCOL_ERROR on https version
body: <p>I am using laravel 5.8 on my nginx server with laravel echo server, socket.io and redis.</p>
  <p>My site was working till yesterday with no error but today it has been giving me socket errors such as:</p>
  <pre><code>GET https://example.com:6001/socket.io/?EIO=3&amp;transport=polling&amp;t=NHtNFvZ net::ERR_SSL_PROTOCOL_ERROR
  </code></pre>
  <p>This my laravel-echo-server.json file:</p>
  <pre><code>{
      &quot;authHost&quot;: &quot;http://localhost:8000&quot;,
      &quot;authEndpoint&quot;: &quot;/broadcasting/auth&quot;,
      &quot;clients&quot;: [
          {
              &quot;appId&quot;: &quot;123&quot;,
              &quot;key&quot;: &quot;123&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;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>First I was encountered with <code>ERR_CRT_DATE_INVALID</code> error but later <code>ERR_SSL_PROTOCOL_ERROR</code>.</p>
  <p>I have restarted echo worker using <code>sudo supervisorctl restart echo-server:*</code> but still same issue.</p>