Hello, In my application I need to use a custom protocol over raw TCP sockets (so socket.io is out of scope). I need to connect the mobile device to another with a certain IP address, and send and receive data over this connection. As far as I have seen, the closes plugin that could support this for ionic 2 would be cordova-plugin-chrome-apps-sockets-tcp, but I have not had any luck in using this in an ionic 2 project.
I have tried both
declare var chrome;
without any success.
I have seen an example using this plugin successfully, written for ionic (1), but I am afraid I lack the experience to convert it to ionic 2:
Would anybody have any knowledge on the matter, either on how to use the aforementioned plugin, or suggest another one I could use?