{"_id":"socket.io-p2p-server","maintainers":[{"name":"tomcartwrightuk","email":"tecartwright@gmail.com"}],"keywords":["webrtc","peer-to-peer"],"dist-tags":{"latest":"1.2.0"},"author":{"name":"Tom Cartwright","email":"tecartwright@gmail.com","url":"http://tomcartwright.net"},"description":"Server middleware to power socket.io-p2p. Handles signalling.","readme":"Socket.io-p2p-server\n====================\n\nThe socket.io middleware that powers [socket.io-p2p](https://github.com/tomcartwrightuk/socket.io-p2p). It handles passing signalling data between all peers. Just include the middleware and everything is handled for you.\n\n## How to use\n\nSimple require the module and [use](\"http://socket.io/docs/server-api/#namespace#use(fn:function):namespace\") it.\n\n```\nvar p2pserver = require('socket.io-p2p-server').Server\nvar io = require('socket.io')(server);\nio.use(p2pserver)\n```\n\nFor example, in an express powered app, you can do the following:\n\n```\nvar app = require('express')()\nvar server = require('http').Server(app)\nvar p2pserver = require('socket.io-p2p-server').Server\nvar io = require('socket.io')(server)\n\napp.use(express.static(__dirname))\nio.use(p2pserver)\n\nserver.listen(3030, function () {\n  console.log(\"Listening on 3030\")\n})\n```\n\nIt can also be used inside your connection logic so that you can specify a room that clients will communicate over:\n\n```\np2pserver(socket, null, room)\n```\n\nNote that `null` must be passed as the second arguement when being used in this context.\n","repository":{"type":"git","url":"https://github.com/tomcartwrightuk/socket.io-p2p-server"},"bugs":{"url":"https://github.com/tomcartwrightuk/socket.io-p2p-server/issues"},"license":"MIT","versions":{"1.0.3":{"name":"socket.io-p2p-server","version":"1.0.3","description":"Server middleware to power socket.io-p2p. Handles signalling.","author":{"name":"Tom Cartwright","email":"tecartwright@gmail.com","url":"http://tomcartwright.net"},"main":"index.js","scripts":{"test":"mocha test/index.js"},"repository":{"type":"git","url":"https://github.com/tomcartwrightuk/socket.io-p2p-server"},"keywords":["webrtc","peer-to-peer"],"license":"MIT","bugs":{"url":"https://github.com/tomcartwrightuk/socket.io-p2p-server/issues"},"homepage":"https://github.com/tomcartwrightuk/socket.io-p2p-server","dependencies":{"chai":"~2.1.2","debug":"~2.1.2","mocha":"~2.2.1","sinon":"~1.14.1","sinon-chai":"~2.7.0"},"gitHead":"555b7d6a0f9a81141fb1994c92d98433f6356819","_id":"socket.io-p2p-server@1.0.3","_shasum":"7a31c7f9384f5a5705deffea17dc6f1c3257a1fb","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.36","_npmUser":{"name":"tomcartwrightuk","email":"tecartwright@gmail.com"},"dist":{"shasum":"7a31c7f9384f5a5705deffea17dc6f1c3257a1fb","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/socket.io-p2p-server/-/socket.io-p2p-server-1.0.3.tgz","integrity":"sha512-JtDhexH4hTTEkrXRM7V6au8RXCiXaSQSEGALm/PYfrDt1Nsqq2xXyhN/KjULmRm0Xachi5HqoAnwguJGI7jGkQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFnuYm3G7puAhFfQFYH+RVVtB8CHAyNAZwSA78x9U1NwIgNG4WkpmkOyF8eUOwT6e8IVrmWlBvudBA3c3kJkjfdq8="}]},"maintainers":[{"name":"tomcartwrightuk","email":"tecartwright@gmail.com"}]},"1.0.0":{"name":"socket.io-p2p-server","version":"1.0.0","description":"Server middleware to power socket.io-p2p. Handles signalling.","main":"index.js","scripts":{"test":"mocha test/index.js"},"repository":{"type":"git","url":"https://github.com/tomcartwrightuk/socket.io-p2p-server"},"keywords":["webrtc","peer-to-peer"],"author":{"name":"Tom Cartwright"},"license":"MIT","bugs":{"url":"https://github.com/tomcartwrightuk/socket.io-p2p-server/issues"},"homepage":"https://github.com/tomcartwrightuk/socket.io-p2p-server","dependencies":{"chai":"~2.1.2","debug":"~2.1.2","mocha":"~2.2.1","sinon":"~1.14.1","sinon-chai":"~2.7.0"},"gitHead":"e0000d8ed8f3ed4e027fc9e5e5ee140f0032ba4b","_id":"socket.io-p2p-server@1.0.0","_shasum":"7332f086cf24e3d28eb60256ad10d237fef7b3ba","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.36","_npmUser":{"name":"tomcartwrightuk","email":"tecartwright@gmail.com"},"dist":{"shasum":"7332f086cf24e3d28eb60256ad10d237fef7b3ba","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/socket.io-p2p-server/-/socket.io-p2p-server-1.0.0.tgz","integrity":"sha512-x0UDopnRNegvdO2mOjHCS8BB7xnl0GDbyDFBgT16knoMqCG0sNf0xRRCoh4E095e8noWizEVsef0DroBzQl+Sw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxUfzIWj9miGDppB5yCkpvXfzMuGGPPUcVWY510Q0wtAIgehRh7c+v9nSoYXhojn1biA61hz4tiXK8eB81vh3YZns="}]},"maintainers":[{"name":"tomcartwrightuk","email":"tecartwright@gmail.com"}]},"1.0.1":{"name":"socket.io-p2p-server","version":"1.0.1","description":"Server middleware to power socket.io-p2p. Handles signalling.","author":{"name":"Tom Cartwright","email":"tecartwright@gmail.com","url":"http://tomcartwright.net"},"main":"index.js","scripts":{"test":"mocha test/index.js"},"repository":{"type":"git","url":"https://github.com/tomcartwrightuk/socket.io-p2p-server"},"keywords":["webrtc","peer-to-peer"],"license":"MIT","bugs":{"url":"https://github.com/tomcartwrightuk/socket.io-p2p-server/issues"},"homepage":"https://github.com/tomcartwrightuk/socket.io-p2p-server","dependencies":{"chai":"~2.1.2","debug":"~2.1.2","mocha":"~2.2.1","sinon":"~1.14.1","sinon-chai":"~2.7.0"},"gitHead":"e494218ff73fd01aa021d41ab6aaca2f646d251f","_id":"socket.io-p2p-server@1.0.1","_shasum":"c087ec8ef8cbda16c757094cda927871142f283c","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.36","_npmUser":{"name":"tomcartwrightuk","email":"tecartwright@gmail.com"},"dist":{"shasum":"c087ec8ef8cbda16c757094cda927871142f283c","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/socket.io-p2p-server/-/socket.io-p2p-server-1.0.1.tgz","integrity":"sha512-IC5Xy5VpPwwTSGbgiScRwlIIsNayHviyNeXdeH2uPJ36NqcfFWPSdG1Vlf9nm9fUe2uIYbSLGtxlR+DuPGCG3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBAEHlhi/NKXDjYm6z9TLd+oxOHaxtcrfphERvN0ciEDAiEAqcIFOuQVC+rZiS948ghyBSZOxBgSNdVu/ofd8FxlhaQ="}]},"maintainers":[{"name":"tomcartwrightuk","email":"tecartwright@gmail.com"}]},"1.1.0":{"name":"socket.io-p2p-server","version":"1.1.0","description":"Server middleware to power socket.io-p2p. Handles signalling.","author":{"name":"Tom Cartwright","email":"tecartwright@gmail.com","url":"http://tomcartwright.net"},"main":"index.js","scripts":{"test":"mocha test/index.js"},"repository":{"type":"git","url":"https://github.com/tomcartwrightuk/socket.io-p2p-server"},"keywords":["webrtc","peer-to-peer"],"license":"MIT","bugs":{"url":"https://github.com/tomcartwrightuk/socket.io-p2p-server/issues"},"homepage":"https://github.com/tomcartwrightuk/socket.io-p2p-server","dependencies":{"chai":"~2.1.2","debug":"~2.1.2","mocha":"~2.2.1","sinon":"~1.14.1","sinon-chai":"~2.7.0"},"gitHead":"9d42433c876bafbc0875aec5f27c8993525ecf2f","_id":"socket.io-p2p-server@1.1.0","_shasum":"eca40effa01475591f68596df3ae4754d2649108","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.36","_npmUser":{"name":"tomcartwrightuk","email":"tecartwright@gmail.com"},"dist":{"shasum":"eca40effa01475591f68596df3ae4754d2649108","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/socket.io-p2p-server/-/socket.io-p2p-server-1.1.0.tgz","integrity":"sha512-RCV88kPK6+0Ehr4gxn3bfwCncrs50Jf2KayJtNqO5aXsRppQEEGao4dU8HvFUv6Cx6su50PmEX2sJ/hJqGHojQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDi5g7cycOOJ/NaZMZ7TpiGFs7sb/ADcnrhvqPUTcozugIhAI8QEVVMUNotr7G57BbWr1aC+8EQnmTHG6i6tSJyyJ2C"}]},"maintainers":[{"name":"tomcartwrightuk","email":"tecartwright@gmail.com"}]},"1.0.2":{"name":"socket.io-p2p-server","version":"1.0.2","description":"Server middleware to power socket.io-p2p. Handles signalling.","author":{"name":"Tom Cartwright","email":"tecartwright@gmail.com","url":"http://tomcartwright.net"},"main":"index.js","scripts":{"test":"mocha test/index.js"},"repository":{"type":"git","url":"https://github.com/tomcartwrightuk/socket.io-p2p-server"},"keywords":["webrtc","peer-to-peer"],"license":"MIT","bugs":{"url":"https://github.com/tomcartwrightuk/socket.io-p2p-server/issues"},"homepage":"https://github.com/tomcartwrightuk/socket.io-p2p-server","dependencies":{"chai":"~2.1.2","debug":"~2.1.2","mocha":"~2.2.1","sinon":"~1.14.1","sinon-chai":"~2.7.0"},"gitHead":"a3fef1695fec68a67850c45536f24ce34ea0dd6c","_id":"socket.io-p2p-server@1.0.2","_shasum":"028be5658934b312227004f20d1cfbd468b4090d","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.36","_npmUser":{"name":"tomcartwrightuk","email":"tecartwright@gmail.com"},"dist":{"shasum":"028be5658934b312227004f20d1cfbd468b4090d","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/socket.io-p2p-server/-/socket.io-p2p-server-1.0.2.tgz","integrity":"sha512-EhjKBj+4XGtQRpQGCOCi3NjB9NadeG0aAwJ6axxdZvNLJ3+bqwC/KRdFPAEGIwhPEmIPfl2+IsdxGiKtTAtpqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHKlElLylsEeAG1QolErgsBR5Ixv3Fs5p25sZWuHYW2SAiEAggRAxqgjxsUN2eaQhrRhcLGeY7FU9P8buboV5m8zrOk="}]},"maintainers":[{"name":"tomcartwrightuk","email":"tecartwright@gmail.com"}]},"1.1.1":{"name":"socket.io-p2p-server","version":"1.1.1","description":"Server middleware to power socket.io-p2p. Handles signalling.","author":{"name":"Tom Cartwright","email":"tecartwright@gmail.com","url":"http://tomcartwright.net"},"main":"index.js","scripts":{"test":"mocha test/index.js"},"repository":{"type":"git","url":"https://github.com/tomcartwrightuk/socket.io-p2p-server"},"keywords":["webrtc","peer-to-peer"],"license":"MIT","bugs":{"url":"https://github.com/tomcartwrightuk/socket.io-p2p-server/issues"},"homepage":"https://github.com/tomcartwrightuk/socket.io-p2p-server","dependencies":{"chai":"~2.1.2","debug":"~2.1.2","mocha":"~2.2.1","sinon":"~1.14.1","sinon-chai":"~2.7.0"},"gitHead":"b27654794cc175f039f9e6df68708d6d850bfd3e","_id":"socket.io-p2p-server@1.1.1","_shasum":"b2bff2c571d9f798c39fea93fe04db3c9550c6e0","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.36","_npmUser":{"name":"tomcartwrightuk","email":"tecartwright@gmail.com"},"dist":{"shasum":"b2bff2c571d9f798c39fea93fe04db3c9550c6e0","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/socket.io-p2p-server/-/socket.io-p2p-server-1.1.1.tgz","integrity":"sha512-6iME3EmLZN7LOJTtRKi+GMgP8X2bm/jlJhD/4hByunYqck3RW6KZWP93m9PCzW3T68Y2WvSyGzBZ95105/Msug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFPZJov/1m2cCDJfpEGIulFsZqe9PqqxbARr7iUlVcUvAiEAlLW/LKuZ/7AdaGIpTZjHvF9mUwTzzqUMH8WFQkfyeR0="}]},"maintainers":[{"name":"tomcartwrightuk","email":"tecartwright@gmail.com"}]},"1.2.0":{"name":"socket.io-p2p-server","version":"1.2.0","description":"Server middleware to power socket.io-p2p. Handles signalling.","author":{"name":"Tom Cartwright","email":"tecartwright@gmail.com","url":"http://tomcartwright.net"},"main":"index.js","scripts":{"test":"mocha test/index.js"},"repository":{"type":"git","url":"https://github.com/tomcartwrightuk/socket.io-p2p-server"},"keywords":["webrtc","peer-to-peer"],"license":"MIT","bugs":{"url":"https://github.com/tomcartwrightuk/socket.io-p2p-server/issues"},"homepage":"https://github.com/tomcartwrightuk/socket.io-p2p-server","dependencies":{"chai":"~2.1.2","debug":"~2.1.2","mocha":"~2.2.1","sinon":"~1.14.1","sinon-chai":"~2.7.0"},"gitHead":"32b6da515c2acbb20095c84d5fcf357629a54c13","_id":"socket.io-p2p-server@1.2.0","_shasum":"5455bfaf16373f4ef6cae04b6cebec6663778ae6","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.36","_npmUser":{"name":"tomcartwrightuk","email":"tecartwright@gmail.com"},"dist":{"shasum":"5455bfaf16373f4ef6cae04b6cebec6663778ae6","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/socket.io-p2p-server/-/socket.io-p2p-server-1.2.0.tgz","integrity":"sha512-2U7t5u3xuvJk9FUH5jg9mpWZigqVj3AuttLBiVeBRGo4SiDQbwypon3/97l3/UPCNimJMpSDz6uL+AVRd5vXTA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCa9YOddRUFUq/XGPtV1yciZ3EoczNKYZM6eKWdBMDAFQIhAJzSvgKcHAu70SOBDZPE+vGpr8Ymeqxg9ex8ikM4Um6c"}]},"maintainers":[{"name":"tomcartwrightuk","email":"tecartwright@gmail.com"}]}},"name":"socket.io-p2p-server","time":{"1.0.3":"2015-03-25T12:30:20.668Z","created":"2015-03-24T22:44:55.223Z","modified":"2025-05-14T08:57:02.219Z","1.0.0":"2015-03-24T22:44:55.223Z","1.0.1":"2015-03-24T22:50:24.191Z","1.1.0":"2015-05-26T05:39:12.326Z","1.0.2":"2015-03-25T10:21:54.109Z","1.1.1":"2015-05-26T10:23:13.251Z","1.2.0":"2015-07-13T12:39:45.093Z"},"readmeFilename":"README.md","homepage":"https://github.com/tomcartwrightuk/socket.io-p2p-server"}