{"dist":{"shasum":"ca46e14c99a09fbf7d85c2e3005e7ccb85fa9cb1","tarball":"https://registry.npmjs.org/remote-events/-/remote-events-1.1.2.tgz","integrity":"sha512-la0FyvouMfx4Ga6YcWhZ8ECvxApStnCQWlsSbfwmb37Rz3UF/QzjB/1msENjaK/hbRH9LQAY/MiWGQX5VyKQdQ==","signatures":[{"sig":"MEUCIQD/+A4VfJ8Ukcud7MLPM6GBNOmsUTZ/G4kbw8uvmlflHwIgW5Rb61dBHbxJbcUH9Tjw/+h+nzLnt0RBmZETdtUARrU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"name":"remote-events","author":{"url":"dominictarr.com","name":"Dominic Tarr","email":"dominic.tarr@gmail.com"},"readme":"# RemoteEvents\n\nconnect two EventEmitters through a stream!\n\n``` js\nvar RemoteEventEmitter = require('..')\nvar es = require('event-stream')\nvar net = require('net')\n\nvar server = net.createServer(function (con) {\n  var ree = new RemoteEventEmitter()\n  con.pipe(ree.getStream())\n\n  ree.on('ping', function (time) {\n    console.log('PING', time)\n    ree.emit('pong', Date.now())\n  })\n}).listen(2468, function () {\n\n  var con = net.connect(2468)\n  var ree = new RemoteEventEmitter()\n  con.pipe(ree.getStream()).pipe(con)\n\n  var time = Date.now()\n  ree.on('pong', function (_time) {\n    console.log('PONG', _time, _time - time)\n    ree.disconnect()\n    server.close()\n  })\n  ree.emit('ping', time)\n})\n\n```\n\n## options\n\nYou can pass in `opts.wrap` to `RemoteEventEmitter` to set the\nwrapper function that should be used by [`stream-serializer`][1]\n\n  [1]: https://github.com/dominictarr/stream-serializer\n","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"homepage":"http://github.com/dominictarr/remote-events","repository":{"url":"https://github.com/dominictarr/remote-events.git","type":"git"},"_npmVersion":"1.1.65","description":"a two ended EventEmitter connected through a Stream","directories":{},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"dependencies":{"through":"~1.1.2","stream-serializer":"0.0.3"},"readmeFilename":"readme.markdown","devDependencies":{"assertions":"2"},"_id":"remote-events@1.1.2","version":"1.1.2"}