title: SocketIO emit from Node server to Python client
body: <p>I'm looking for a way to emit an instruction from my NodeJS server to my client Python.</p>
  
  <p>My server receive the 'instruction' from a Web Interface, and the connection works. 
  But I am not able to emit this instruction to my client which is in Python.</p>
  
  <p><strong>Main idea :</strong> </p>
  
  <p><strong>- NodeJS</strong></p>
  
  <pre><code>socket.on('instruction', function (jsonMessage){
           ...
          socket.emit('deleteFile', jsonMessage);
           };
  </code></pre>
  
  <p><strong>- Python</strong></p>
  
  <pre><code>from socketIO_client_nexus import SocketIO
  import json
       ...
  def on_deleteF(*args):
       #I just try to print something first
       print('test delete')
       ...
  mainSocket = SocketIO('0.0.0.0', 3000)
  mainSocket.on('deleteFile', on_deleteF)
  </code></pre>
  
  <p>I don't know if I made a mistake in my way of thinking socket.emit('deleteFile'),  or on the '.on' in Python, or on both.</p>
  
  <p>So if you can explain me the good way to do, the good way to think. Thanks</p>