title: Socket.io: emit no event
body: <p>I try to emit event "player move" with a json-object:</p>
  
  <pre><code>    this.broadcast.emit("player move", JSON.stringify(player));
  </code></pre>
  
  <p>but on the client I get this:</p>
  
  <pre><code>INFO: &gt; 5:::{"args":[{"x":108,"y":105}],"name":"player move"}
  </code></pre>
  
  <p>Which doesnt show an event. Why is this? (This is from a socket.io framework in JavaScript).</p>
  
  <p>Im using socket.io 0.9.17</p>
  
  <p>EDIT: More code</p>
  
  <pre><code>client.on('player move', onPlayerMove);
  </code></pre>
  
  <p>Then the function:</p>
  
  <pre><code>function onPlayerMove(data) {
  var player = playerWithId(this.id);
  if (!player) {
      util.log("Player not found: " + this.id);
      return;
  }
  player.setX(data.x);
  player.setY(data.y);
  
  
  this.broadcast.emit("player move", JSON.stringify(player));
  </code></pre>
  
  <p>}</p>