Add connection listener.