eventtcp
v0.0.4
Published
Event emitter that works over the tcp socket
Downloads
2
Readme
eventtcp
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