📜  stackoverflow 搜索 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:04.696000             🧑  作者: Mango

代码示例2
import socketio

sio = socketio.Client()
logger.info('Created socketio client')

@sio.event
def connect():
    logger.info('connected to server')

@sio.event
def disconnect():
    logger.info('disconnected from server')

sio.connect('https://server.com/socket.io/')
sio.wait()