Check Internet Speed in ionic 4

How i can check the internet speed in ionic 4 app using Network plugin ?
I used downlinkMax from the network plugin but it returns null. SomeOne if know Please help