擅长:python、mysql、java
<p>我把<a href="https://stackoverflow.com/users/370115/rod">rod</a>的研究打包成<a href="https://github.com/invisibleroads/socketIO-client" rel="nofollow noreferrer">barebones socket.io client library</a>。</p>
<pre><code>pip install -U socketIO-client
python
from socketIO_client import SocketIO
with SocketIO('localhost', 8000) as socketIO:
socketIO.emit('aaa')
socketIO.wait(seconds=1)
</code></pre>