Sending message to server using python SocketIO
<p>I have a situation where I have a python client try to send a message to a server using SocketIO. I'm using sock.emit to send a json message as shown below </p>

<pre><code>    sock = SocketIO(url, None, ...)
    message = {'ob': 'house',
               'ids': ['54fjadb70f9756','39f1ax451f6567']}
    self.sock.emit(message)
</code></pre>

<p>server expects the follow:</p>

<pre><code>     {"ob":"house","ids":['54fjadb70f9756','39f1ax451f6567']}
</code></pre>

<p>the server is current receive the following message:</p>

<pre><code>    {"args": [], "name": "{\"ids\": [\"54fjadb70f9756\", \"39f1ax451f6567\"], \"ob\": \"house\"}"}
</code></pre>

<p>then complains about an invalid message.</p>

<p>How would I send the message so that the server receives it as expected i.e which the original message structure I specified? it seems emit is changing the structure of the message when I send it, is it possible to override and change emit to that it retain the original message structure? is so how would I do that?</p>