base parts of RTCPeerServer rest protocl