implement BTchat architecture for fix reconnect issue