add connectSession in the client