allow changing the URI on socket re-open