I am using PeerJS, which is a JavaScript implementation of WebRTC. I am using it for sending data through the DataChannel.
Are there any speed restrictions by the browser engines?
I am not able to send more than ~20MB/s even though both instances of my application are running on the same machine. The data is not being sent over the network as can be seen using the system monitor of my Linux machine. I have tried both Chrome and Firefox.
Has anyone experienced faster speeds using the WebRTC data channel? I presumed that a peer-to-peer connection should be the fastest means of data transportation and am wondering if that's my implementation or a protocol issue. I am aware that window size plays a major role in performance especially. Any practical experiences with PeerJS that could be helpful?