Where To Store Webrtc Streams When Building React App With Redux
I'm building a React.js application that interacts with the WebRTC apis to do audio/video calling. When a call is successfully established, an 'onaddstream' event is fired on the R
Solution 1:
In my experience things like socket connections and, as in your case, webrtc things, are well-suited for living inside their own middlewares hand-written for your application. You can wire up all connection management here, fire actions to communicate with UI and listen for actions coming from here.
Another solution would be to look on redux saga, which seems to be quite a nice option for handling complex effects as sockets and webrtc.
Post a Comment for "Where To Store Webrtc Streams When Building React App With Redux"