Using cordova-plugin-chrome-apps-sockets-udp in a cordova app

Hi

https://www.npmjs.com/package/cordova-plugin-chrome-apps-sockets-udp

I am having a hard time finding the way to use the linked plugin in a meteor app. I have tried using “requirejs” method. AFAIK, the npmRequire method is only for the server side.

I am trying to create and use the socket in a class by using the following syntax:

chrome.sockets.udp.create({}, (socketInfo) => {
     this.socketInfo = socketInfo;
});

As I am not sure how I need to import chrome functionality, the chrome variable is undefined. Is the problem caused by the app not running in chrome? I think it is as the console displays the error with the following text:
[...] chromium: [INFO:CONSOLE(531)] "Uncaught ReferenceError: chrome is not defined" [...]

The project is run on an android phone, using:
meteor run android-device --mobile-server 192.168.0.79 # it is the ip of the server