Cordova socket connection plugin that enable an application to create a communication on a given port and receive data on that given port.
npm install cordova-plugin-socket-scrutinizercordova-plugin-socket-scrutinizer
=========
A small library providing utility methods to create a socket connection , listen to a given port and receive all data to that given port.
html
`
below the cordova.js script.
`javascript
var port = 3000; // desired port to listen to
SocketConnection.scrutinize("listen", port, function (data) {
//onReceive data callback
var dataFromSocket = JSON.parse(data.response);
console.log(data.response);
};
``