title: Ratchet Websocket can't receive data from client?
body: <p>I have a real time web application with the frameWork Symfony. I need to send data from client to the webscket server.so I have try this :</p>
  
  <pre><code>var conn = new WebSocket('ws://127.0.0.1:8080');
  console.log (conn);
  conn.onopen = function (e) { 
                              console.log ("Connection established!");
                  conn.send("xoxo");
  
  };
  </code></pre>
  
  <p>It does't show any error and in the server side I have this :
  The Server Code :</p>
  
  <pre><code>$app=new AggregateApplication();
  $loop   = \React\EventLoop\Factory::create();
  $context = new \React\ZMQ\Context($loop);
  $pull = $context-&gt;getSocket(\ZMQ::SOCKET_PULL);
  $pull-&gt;bind('tcp://127.0.0.1:5555');
  $pull-&gt;on('message', array($app, 'EditMessage'));
  $webSock = new \React\Socket\Server($loop);
  $webSock-&gt;listen(8080, '127.0.0.1');
  $handler = $this-&gt;getContainer()-&gt;get('session.handler');
  $server=new \Ratchet\Wamp\WampServer($app);
  $server = new SessionProvider($server, $handler);
  $webServer = new \Ratchet\Server\IoServer(new     \Ratchet\WebSocket\WsServer($server),$webSock);
  $loop-&gt;run();
  </code></pre>
  
  <p>and this is my App code :</p>
  
  <pre><code>class AggregateApplication implements WampServerInterface {
      protected $clients;
      protected $comming;
      public function __construct() {
          $this-&gt;clients = array();
          $this-&gt;comming = array();
      }
  
      public function onOpen(ConnectionInterface $conn){
          $this-&gt;clients[array_shift($this-&gt;comming)]=$conn;
          echo "New connection! ".array_shift($this-&gt;comming)." ({$conn-&gt;resourceId})\n";
      }
      public function onCall(ConnectionInterface $conn, $id, $topic, array $params){
  
      }
       public function onSubscribe(ConnectionInterface $conn, $topic){
          echo "onSubscribe";
      }
      public function onUnSubscribe(ConnectionInterface $conn, $topic){
  
      }
      public function onPublish(ConnectionInterface $conn, $topic, $event, array $exclude, array $eligible){
  
      }
      public function onClose(ConnectionInterface $conn) {
          unset($this-&gt;clients[array_search($conn, $this-&gt;clients)]);
         echo 'close connection ';
      }
  
      public function onError(ConnectionInterface $conn, \Exception $e) {
      }
  }
  </code></pre>
  
  <p>The problem I can't find were I ll catch the message sent from client?</p>