title: Broadcasting with Laravel Echo, laravel-echo-server and socket.io is not working
body: <p>I've setup websockets with Laravel sucessfully with an own implementation.But, after many hours of trying and reading every piece of documentation I could find, I do need further help.</p>
  
  <pre><code>"laravel-echo": "^1.5.2",
  "socket.io-client": "^2.2.0",
  </code></pre>
  
  <p>This is my <strong>.env</strong> file details</p>
  
  <pre><code>BROADCAST_DRIVER=redis
  CACHE_DRIVER=file
  QUEUE_CONNECTION=redis
  SESSION_DRIVER=file
  SESSION_LIFETIME=120
  </code></pre>
  
  <p><strong>laravel-echo-server.json</strong></p>
  
  <pre><code> "database": "redis",
      "databaseConfig": {
          "redis": {},
          "sqlite": {
              "databasePath": "/database/laravel-echo-server.sqlite"
          }
      },
      "devMode": true,
  </code></pre>
  
  <p><strong>ExampleEvent file</strong></p>
  
  <pre><code>public function broadcastOn()
      {
          return new Channel('test-event');
      }
  
      public function broadcastWith(){
          return [
              'data' =&gt; 'key'
          ];
      }
  </code></pre>
  
  <p>My <strong>Bootstrap.js</strong></p>
  
  <pre><code>window.Echo.channel('test-event')
      .listen('ExampleEvent', (e) =&gt; {
          console.log(e);
      });
  </code></pre>
  
  <p>When Implementhing</p>
  
  <p>Laravel-echo-server:</p>
  
  <blockquote>
    <p>[10:03:50 PM] - F07Nv9alc-Bsh3LEAAAB joined channel: test-event
    [10:04:16 PM] - F07Nv9alc-Bsh3LEAAAB left channel: test-event
    (transport close) Channel: test-event Event: App\Events\ExampleEvent</p>
  </blockquote>
  
  <p>Redis:</p>
  
  <blockquote>
    <p>1548349380.228566 [0 127.0.0.1:53929] "EVAL" "-- Pop the first job off of the queue...\nlocal job = redis.call('lpop', KEYS[1])\nlocal
    reserved = false\n\nif(job ~= false) then\n    -- Increment the
    attempt count and place job on the reserved queue...\n    reserved =
    cjson.decode(job)\n    reserved['attempts'] = reserved['attempts'] +
    1\n    reserved = cjson.encode(reserved)\n    redis.call('zadd',
    KEYS[2], ARGV[1], reserved)\nend\n\nreturn {job, reserved}" "2"
    "queues:default" "queues:default:reserved" "1548349470"
    1548349380.228773 [0 lua] "lpop" "queues:default"</p>
  </blockquote>
  
  <p><strong>This statement is being repeated continuously..</strong></p>
  
  <blockquote>
    <p>Moreover there is no output in browser</p>
  </blockquote>