named-pipes
v0.0.1
Published
Windows named pipes for node
Downloads
642
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'