keep connection with server