This demo is using SSE (Server Sent Events) to setup WebRTC one-to-one connection. Check PHP Source Codes