client: add connection to state