title: Ratchet with Laravel 5
body: <p>I am trying to integrate Ratchet with Laravel.</p>
  
  <p>I have added the following in the handle() of Command class</p>
  
  <pre><code>public function handle()
  {
  
  
      $this-&gt;info('Server running');
      $loop = Factory::create();
      $webSock = new Server($loop);
      $webSock-&gt;listen(8080, '0.0.0.0');
  
      $webServer = new IoServer(
          new HttpServer(
              new WsServer(
                  new WampServer(
                      new EventHandler($loop) // This is my class. Pass in the loop!
                  )
              )
          ),
          $webSock
      );
  
      $loop-&gt;run();
      }
  </code></pre>
  
  <p>This command is working properly when executed from CLI</p>
  
  <p>Now what will be the effect if I add the following code in the Controller:</p>
  
  <pre><code>Bus::dispatch(
      new RatchetCommand()
  );
  </code></pre>
  
  <p>Will multiple instances of the server start ? Because that Controller will be called multiple times.</p>