def get_my_sid(sid): print(sid) data = { 'sid': sid, } code = 'ack_send_sid' Relay.send_msg(sid, code, data) return
def req_test(sid, data): print('收到http服务器的推送', sid) print(Relay.get_all_admin()) # CountdownTask(5,Relay.send_msg,(sid, 'ack_test', data)) data['comment'] = 'socketio_server Callback' Relay.send_msg(sid, 'ack_test', data)