fixed disconect event for all endpoints, and refactoring go client