from wa_client import Client from wa_server import Server SERVER_IP = '127.0.0.1' SERVER_PORT = 7778 if __name__ == '__main__': c = Client(SERVER_IP, SERVER_PORT) while True: cmd = input('MSG \n') cmd = cmd.split(" ") if cmd[0] == "MSG": user_id = int(cmd[1]) msg = " ".join(cmd[2:]) c.send_message(user_id, msg) elif cmd[0] == "RECV": msg = c.recv_message() print(msg)