Temasys / SkylinkJS

SkylinkJS Javascript WebRTC SDK
http://skylink.io/web
Other
275 stars 57 forks source link

Amending documenation for sample code for using statistics #384

Closed ishannaithani closed 5 years ago

ishannaithani commented 5 years ago

Purpose of this PR: Sample code for statistics had a mistake in the function printConnStats. It accepts an connectionStats object and again references connectionStats within its body to access peerId.

Fix: printConnStats should not reference connectionStats and directly access peerId

See ESS-1511 for more details.