title: html + javascript + socketio
body: <p>I've some problem in sending a simple message trough socket.io:</p>
  
  <p>giving a button in index.html:</p>
  
  <pre><code>&lt;button id="button" onclick="functionTest()"&gt; buttonTest &lt;/button&gt;
  </code></pre>
  
  <p>and this function in my js :</p>
  
  <pre><code>function functionTest( function(event) {
       socket.emit('myevent', {data: "testval"});
       return false;
  });
  </code></pre>
  
  <p>if I have a Flask server with:</p>
  
  <pre><code>@socketio.on('myevent', namespace='/test')
  def test_message(message):
      print message
  </code></pre>
  
  <p>I should see in the Flask log, the message, but it doesn't work.
  Where am I wrong?</p>
  
  <p>thank you</p>