1. fix disconnect bug, 2. add sendMessage func