Hi, it seems your request is similar to this one
Our team is working on a lib that will be based on the same idea (using socket.io & ffmpeg process).
It is not ready to be used in production, but you can already have a look at the readme to see if it could suit your needs: GitHub - apivideo/api.video-browser-to-rtmp: [WIP - DO NOT USE] Easily publish a webcam stream from browsers to a RTMP server