Exemple #1
0
def process_chat(session_id, msg):
    print("process_chat", session_id, msg)
    ffext.broadcast_msg_gate('gate@0', 1, msg)
    def cb():
        ffext.broadcast_msg_gate('gate@0', 1, '定时器2')
    ffext.once_timer(1000, cb)
    ffext.reload('main')
Exemple #2
0
 def cb():
     ffext.broadcast_msg_gate('gate@0', 1, '定时器2')