Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

eventtcp

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eventtcp

Event emitter that works over the tcp socket

latest
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

eventtcp

Build Status npm version

How to install

npm install eventtcp --save

eventtcp allows you to send events over the TCP socket.

How to use

var EventTCP = require('eventtcp').EventTCP;

//client side
var emitter = new EventTCP({
	port: 8080,
	host: 'localhost'
});

//server side
var server = net.createServer(function(socket) {
	var emitter = new EventTCP(socket);
});

License

MIT

FAQs

Package last updated on 07 Apr 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