title: Symfony2 WebSocketBundle - ZMQ Push not working
body: <p>I'm using Symfony2 to build a simple chat application.
  I decided to use the <a href="https://github.com/GeniusesOfSymfony/WebSocketBundle" rel="noreferrer">GeniusesOfSymfony/WebSocketBundle</a> for my WebSocket, which is powered by Ratchet : </p>
  
  <p><a href="https://github.com/GeniusesOfSymfony/WebSocketBundle" rel="noreferrer">https://github.com/GeniusesOfSymfony/WebSocketBundle</a></p>
  
  <p>I managed to get the chat working using PubSub, but I want to use the push integration instead: I want the client to send the message via AJAX to my Symfony2 controller, which in turn should push the message to all clients of the WebSocket.</p>
  
  <p>I followed this documentation page: </p>
  
  <p><a href="https://github.com/GeniusesOfSymfony/WebSocketBundle/blob/master/Resources/docs/Pusher.md" rel="noreferrer">https://github.com/GeniusesOfSymfony/WebSocketBundle/blob/master/Resources/docs/Pusher.md</a></p>
  
  <p>I've tried using both ZMQ and Websocket Pusher.</p>
  
  <p>With ZMQ, when I run the websocket, I get the cmd notification: </p>
  
  <blockquote>
    <p>ZMQ transport listening on 127.0.0.1:5555</p>
  </blockquote>
  
  <p>However, pushing messages doesn't work:</p>
  
  <pre><code>$pusher = $this-&gt;container-&gt;get("gos_web_socket.zmq.pusher");
  //push(data, route_name, route_arguments)
  $pusher-&gt;push(["type" =&gt; "newMessage", "text" =&gt; $request-&gt;request-&gt;get("msg")], "chat_topic");
  </code></pre>
  
  <p>This is the onPush method in my ChatTopic class:</p>
  
  <pre><code>class ChatTopic implements TopicInterface, PushableTopicInterface {
  
      public function onPush(Topic $topic, WampRequest $request, $data, $provider) {
          $topic-&gt;broadcast($data);
      }
  }
  </code></pre>
  
  <p>The onPush method never gets called. Also, the pusher events never get fired. There doesn't appear to be an exception in the code.</p>
  
  <p>With WebSocket Pusher, I'm not even able to get the service running. There is no notification in the cmd like with ZMQ, and using <code>netstat</code> command I was not able to detect that it's listening on port 1337. When I try to push to it, I get the exception :</p>
  
  <blockquote>
    <p>Could not open socket. Reason: No connection could be made because the
    target machine actively refused it</p>
  </blockquote>
  
  <p>Probably because there is no service listening on port 1337.</p>
  
  <p>P.S. - I am on Windows 10 and using WAMP server. I've successfully installed the ZMQ extension on WAMP, as indicated in the <code>phpinfo()</code>.</p>