Cordova-plugin-chrome-apps-socket

I want to use this plugin in my ionic2 application. However I get an error: Cannot read property tcp, I believe this line is the culprit:
(window).chrome.sockets.tcp.create

I cannot see examples where I can import this plugin as I normally do with others.
Please someone help.