User-1340885213 posted
You need a service that can exchange network and media metadata, it is also called signalling and WebRTC applications need such things to enable streaming. However, the signalling should have taken place.
On the other hand, WebSocket is designed for bi-directional communication between client and server. It uses session. The technology and APIs have some lacking in designing that helps streaming.
In case of Node.js, WebRTC applications worked for this reason: Node.js is an interpreter or running environment for a JavaScript.That helped.