I am trying to use a TCP connected socket in my Ionic 3 app.
To do this I follow the following steps:
1- I create an ionic app:
ionic start testTcp blank --cordova
2- I enter the application directory
cd testtcp
3- I install ionic-native (when creating the project I think it already includes it but I still install it again)
npm install ionic-native --save
4- I download the following plugin to install it from local instead of installing it from the repository, the downloaded plugin is the following: https://github.com/KoenLav/cordova-plugin-chrome-apps-sockets-tcp
5- I install the plugin in my application:
ionic cordova plugin add cordova-plugin-chrome-apps-sockets-tcp-master
So far everything is going well, if I look at the plugins that I have installed with the following command: ionic cordova plugin ls
it tells me that I have the plugin "cordova-plugin-..." installed, which is the one that I just installed.
The problem comes when using this plugin, when creating a socket and connecting to a host.
How do I use this plugin? Do I have to do an import in the home.ts file? How would this import?
Being an own plugin I don't see how to do it and I can't find documentation.
I've tried the tool plugman
but it won't even let me install the plugin.
You have access to it from any component of the application through the windows object