@jackhuynh1995/named-pipes
v0.0.5
Published
Windows named pipes for node
Downloads
7
Maintainers
Readme
named-pipes
Easy to use IPC emitter using Windows Named Pipes.
Installation
npm install named-pipes --save
Usage
Server
NamedPipes = require 'named-pipes'
server = NamedPipes.listen('your-pipe-name')
server.on 'connect', (client) ->
console.log 'New Client'
client.send 'welcome', 'something' # THis gets passed to emit on the client side
Client
NamedPipes = require 'named-pipes'
pipe = NamedPipes.connect('your-pipe-name')
pipe.on 'welcome', (str) ->
console.log str # Outputs 'something'