refactor and document rtc-to-net and netclient