updated relay to act as an rpc proxy (with createReplicationStream only)