def go(self, address):
# wrap Flask application with engineio's middleware
self.app = socketio.Middleware(self.sio, self.app)
# deploy as an eventlet WSGI server
try:
eventlet.wsgi.server(eventlet.listen(address), self.app)
except KeyboardInterrupt:
# unless some hits Ctrl+C and then we get this interrupt
print('stopping')
评论列表
文章目录