New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-socket-scrutinizer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-socket-scrutinizer

Cordova socket connection plugin that enable an application to create a communication on a given port and receive data on that given port.

  • 0.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

cordova-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.

Constraint

*The data sent to that given port must be of type string and the plugin will return it as a JSON string.It must be parse back to JSON. *Support only android.

Installation

cordova plugin add cordova-plugin-socket-scrutinizer

Usage

In the index.html include :

 <script src="SocketConnection.js"></script>

below the cordova.js script.

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);
};

Release History

  • 0.0.0 Initial release

Keywords

FAQs

Package last updated on 28 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc