Socket
Socket
Sign inDemoInstall

tcp-client

Package Overview
Dependencies
9
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.8 to 1.1.9

log/exceptions.log

1

index.js

@@ -10,4 +10,5 @@ var Client = require('./lib')

module.exports = {
createClient: createClient
}

7

lib/index.js

@@ -10,3 +10,3 @@ var moment = require('moment')

this.port = this.options.port
this.timeout = this.options.timeout
this.timeout = Number(this.options.timeout)
}

@@ -21,3 +21,3 @@

Client.prototype.request = function(trama, callback) {
var client = net.connect({host:this.ip,port:this.port}, () => {

@@ -47,3 +47,4 @@ var tramaSend = trama + '\r\n'

client.setTimeout(this.timeout, function(msg) {
client.end();
callback('El Servirdor No responde!',null)

@@ -50,0 +51,0 @@ })

{
"name": "tcp-client",
"version": "1.1.8",
"version": "1.1.9",
"description": "small client tcp",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc