{"_id":"primus-multiplex","_rev":"65-36a8e5d41b109b69f0b086dbddd8e192","name":"primus-multiplex","description":"Simple multiplexing for Primus","dist-tags":{"latest":"3.2.1"},"versions":{"0.1.0":{"name":"primus-multiplex","version":"0.1.0","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["emitter","realtime","websocket","engine.io","socket.io","primus","sockjs","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{},"devDependencies":{"mocha":"*","expect.js":"*","primus":"git://github.com/3rd-Eden/primus.git","primus-rooms":"0.1.x","socket.io-client":"~0.9.16","engine.io-client":"~0.6.3","sockjs-client-node":"0.0.0","engine.io":"~0.6.3","socket.io":"~0.9.16","ws":"~0.4.27","sockjs":"~0.3.7"},"bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@0.1.0","dist":{"shasum":"5f75b16b2d6bdba7a563c29b551e9c9b9c700140","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-0.1.0.tgz","integrity":"sha512-2+Ly/mbvDYnTU+kK2n1gspsafi/ihLCnIGKTLzDan1qrv/w9DbNm2c/xxVVO5PnCdOvlFdZofR1hAq4lBrSvdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBNS54Jj94ImbFdAr0lMpN5V86kv6nqKTehF2aoBkNJeAiBTPJUHZ8jHrEV5pOOj9KnF20N3e4btPTJc+XRSHDgnQg=="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"directories":{}},"0.1.1":{"name":"primus-multiplex","version":"0.1.1","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["emitter","realtime","websocket","engine.io","socket.io","primus","sockjs","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{},"devDependencies":{"mocha":"*","expect.js":"*","primus":"git://github.com/3rd-Eden/primus.git","primus-rooms":"0.1.x","socket.io-client":"~0.9.16","engine.io-client":"~0.6.3","sockjs-client-node":"0.0.0","engine.io":"~0.6.3","socket.io":"~0.9.16","ws":"~0.4.27","sockjs":"~0.3.7"},"bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@0.1.1","dist":{"shasum":"d0a25ab315dde0ee75ecbeccbf894c4234ebfe8a","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-0.1.1.tgz","integrity":"sha512-HI19EclIjaZ3Rp2sQxs64KrxjK46YvHLSwmIMrEYhpyZD4EyyfROSb4c2qnE/wsLD8KQm2QZWLezSoz4TVR2uQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdi4kqkwYT9WP3B3u77QPmBR+Rz18+DoEiSqMMuz1ElgIgfBDHupamcX5rg/hicp5h3AF4QWyGCFmGShAL0CmEreg="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"directories":{}},"0.1.2":{"name":"primus-multiplex","version":"0.1.2","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["emitter","realtime","websocket","engine.io","socket.io","primus","sockjs","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{},"devDependencies":{"mocha":"*","expect.js":"*","primus":"git://github.com/3rd-Eden/primus.git","primus-rooms":"0.1.x","socket.io-client":"~0.9.16","engine.io-client":"~0.6.3","sockjs-client-node":"0.0.0","engine.io":"~0.6.3","socket.io":"~0.9.16","ws":"~0.4.27","sockjs":"~0.3.7"},"bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@0.1.2","dist":{"shasum":"d5abb00185654de318da548dec6d711670eea9c3","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-0.1.2.tgz","integrity":"sha512-+vFzfws885PVFpBW5VVZSAlstK7JE+6dqmY+HxY48Phg98iAHYLk4pBYGv7IpcebMPvfKL7L8eLVIaNswwcGQA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSYouKmTg2DyNnP4s8GG4rV7mZGuQ8sitlwqtTrk5znQIgcp5JsxZ46CwuoOe1N1U0CZt8Dz38iRlQtiiHd+ajhEE="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"directories":{}},"0.1.3":{"name":"primus-multiplex","version":"0.1.3","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["multiplex","realtime","websocket","engine.io","socket.io","primus","sockjs","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{},"devDependencies":{"mocha":"*","expect.js":"*","primus":"git://github.com/3rd-Eden/primus.git","primus-rooms":"0.1.x","socket.io-client":"~0.9.16","engine.io-client":"~0.6.3","sockjs-client-node":"0.0.0","engine.io":"~0.6.3","socket.io":"~0.9.16","ws":"~0.4.27","sockjs":"~0.3.7"},"bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@0.1.3","dist":{"shasum":"071e9893a6b313cf8b1f179741717e27ce65d2d8","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-0.1.3.tgz","integrity":"sha512-EZmfv1doMTKgDHbycll2pGiMYG+iR4VkAiShbuM+YohRyegOz46OO69ZiaY1nUG4iLk2WG6HdzJS6kSxmB75LQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGvJ/gVYGmTLusDtCAzF6E3pD04WfIeYZDsWWbn+LP4RAiBjxA+DTDF5keEJNFD5FIMs0SefLj1QHlgNqixdBxsbrQ=="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"directories":{}},"1.0.0":{"name":"primus-multiplex","version":"1.0.0","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["multiplex","realtime","websocket","engine.io","socket.io","primus","sockjs","rooms","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{},"devDependencies":{"mocha":"*","expect.js":"*","primus":"git://github.com/3rd-Eden/primus.git","ws":"~0.4.27","embedder":"0.0.2","primus-emitter":"1.0.x","primus-rooms":"1.0.x"},"bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@1.0.0","dist":{"shasum":"17d1114e5a847c5fda2d1c09a6689dfaa01c311c","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-1.0.0.tgz","integrity":"sha512-/rYHZm4BiNmasYWzEFnvkCzrSkYitOIwGERzBB8JnReAnMir2jzhrQi+AOq23U0mJpaSAYi86NXRFJoFryXOww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBOK+NpZttsxClVtNkZH1zUUZU5EEBsW+iVRl3digZBBAiAUQu6Hf+UsAspfSZQ/3SYTjLBc9YwdrN8iKeVm+ms1/A=="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"directories":{}},"1.0.1":{"name":"primus-multiplex","version":"1.0.1","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["multiplex","realtime","websocket","engine.io","socket.io","primus","sockjs","rooms","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{},"devDependencies":{"mocha":"*","expect.js":"*","primus":"git://github.com/3rd-Eden/primus.git","ws":"~0.4.27","embedder":"0.0.2","primus-emitter":"1.0.x","primus-rooms":"1.0.x"},"bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@1.0.1","dist":{"shasum":"7cfd91639803eef0127edff56c05dd2b3ba53f34","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-1.0.1.tgz","integrity":"sha512-YmhgFu8l4zSZQpRWpJFx2ZcdNEzzf2Y/ws4wZ6lH8yydOCtKW5qLBCwPMAwMMPmz/FDYtcfxZuc8bSGnq33SWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuIlMhpU6fcSMKZUySbXXAtAqR6E99nD7i77I+Kbuy9gIgW2MeIMrlJ3/HrN22fzx/uq54civc8AFwgR7G+3Yw3ao="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"directories":{}},"1.0.2":{"name":"primus-multiplex","version":"1.0.2","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test","build":"make build"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["multiplex","realtime","websocket","engine.io","socket.io","primus","sockjs","rooms","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{},"devDependencies":{"mocha":"*","expect.js":"*","primus":"git://github.com/3rd-Eden/primus.git","ws":"~0.4.27","browserbuild":"*","primus-emitter":"1.0.x","primus-rooms":"1.0.x"},"bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@1.0.2","dist":{"shasum":"94a64aa6565f801436d19023532dbb5180ba08c0","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-1.0.2.tgz","integrity":"sha512-MOITLKn/gPvzklniNhV4br1l2Me0kOOzJtkI98HVCMt42P37hKOwGCq8NtrLdHem+SYMKolCUvHyxA1hYai08Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKPdelv+txChOKvJFuKU5ynDABi/g7LmBprebJwTEmHgIgDGTunljq3DVN0atTjigpSKtZwT/S0qzSRGK9/U6LYRg="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"directories":{}},"1.1.0":{"name":"primus-multiplex","version":"1.1.0","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test","build":"make build"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["multiplex","realtime","websocket","engine.io","socket.io","primus","sockjs","rooms","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{},"devDependencies":{"mocha":"*","expect.js":"*","primus":"git://github.com/3rd-Eden/primus.git","ws":"~0.4.27","browserbuild":"*","primus-emitter":"1.0.x","primus-rooms":"1.1.x"},"bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@1.1.0","dist":{"shasum":"144bd72af85856e29028725150ec040fdf1de12c","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-1.1.0.tgz","integrity":"sha512-MQNgmR1EL80onMXZwiVS9qJPfXtVjc+iYBk7dUyQhayOmi4IfXVSa4bQYjp+RyHqhB7RmNGojPBmiVzkKimGrQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCprWim5urhSW+QER2oSrIFNZ2OPgCfSlJU4OkVub+ERAIgWfh9Ig5WOF+uPUyQ6D1QD3EongyGhyILA2U7awimKjo="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"directories":{}},"1.1.1":{"name":"primus-multiplex","version":"1.1.1","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test","build":"make build"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["multiplex","realtime","websocket","engine.io","socket.io","primus","sockjs","rooms","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{},"devDependencies":{"mocha":"*","expect.js":"*","primus":"git://github.com/3rd-Eden/primus.git","ws":"~0.4.27","browserbuild":"*","primus-emitter":"1.0.x","primus-rooms":"1.1.x"},"bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@1.1.1","dist":{"shasum":"bf681813b2eaaf124dcdb1f6835a06b260bfb33e","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-1.1.1.tgz","integrity":"sha512-G3lADrBqIeItTLJVII7V73HgiholjOiPw38+RQNa4aj0pwIUUDIOGX6FxXboDBJDG2fJA/Za47XxKW2NdTMUqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF661m6wtU3/UubS2/46tCehnS/YHL7HmDWp23SChy4DAiAf+yZLr/IaNRf947GfDyqqmlSJaRDHm28Rblylw56vxg=="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"directories":{}},"1.1.2":{"name":"primus-multiplex","version":"1.1.2","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test","build":"make build"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["multiplex","realtime","websocket","engine.io","socket.io","primus","sockjs","rooms","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{},"devDependencies":{"mocha":"*","expect.js":"*","primus":"git://github.com/3rd-Eden/primus.git","ws":"~0.4.27","primus-emitter":"1.1.x","primus-rooms":"1.1.x"},"bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@1.1.2","dist":{"shasum":"7b285c077895b081a97f3fcfde954f2804df5529","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-1.1.2.tgz","integrity":"sha512-5l/L/jcv7LMxOf7s/oPaf0ILWEmC89aTNcdXcxFu7fmIo0EGdIPsas18g5fAjXgfH1zVdwXNlYQxUst71X5JQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnEwoCOknmbpon0hCPOs2Y4M/KyxlLxEIsFKRZ9w48cgIhAOHo/5EMXCDHHizEuT6Rwqa6TehnjVWSK7YPVyifliyf"}]},"_from":".","_npmVersion":"1.2.30","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"directories":{}},"2.0.0":{"name":"primus-multiplex","version":"2.0.0","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test","build":"make build"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["multiplex","realtime","websocket","engine.io","socket.io","primus","sockjs","rooms","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{},"devDependencies":{"mocha":"*","expect.js":"*","primus":"git://github.com/3rd-Eden/primus.git","ws":"~0.4.27","primus-emitter":"2.x.x","primus-rooms":"2.x.x"},"bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@2.0.0","dist":{"shasum":"4f4e8d79e3a99bad25c164b509fbac09248711ce","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-2.0.0.tgz","integrity":"sha512-gNelVM8sKBeVK/y7c8l/lb7ONAO70zodJaPln1BzbiKaj6sPUrmxL+z8LC+McLNJJ/tYlpt5gpZnEvxbvPwh+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAj0UbbSIzWPsa01OkRx4fscYOcx6uFrSDhltlxuk+GeAiEA6lXxSoS+6lRmSn4HFKOg7Pn6En3tXMnfkv7zq9FDyw4="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"directories":{}},"2.0.1":{"name":"primus-multiplex","version":"2.0.1","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test","build":"make build"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["multiplex","realtime","websocket","engine.io","socket.io","primus","sockjs","rooms","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{},"devDependencies":{"mocha":"*","expect.js":"*","primus":"git://github.com/3rd-Eden/primus.git","ws":"~0.4.27","primus-emitter":"2.x.x","primus-rooms":"2.x.x"},"bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@2.0.1","dist":{"shasum":"e4c725470545ad598fc41baf2d102ed9d43bc718","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-2.0.1.tgz","integrity":"sha512-cTNcypWXwozgmvpHpCCY0q5jcykD3ppbViiwSav7f7r0warTagZg0Hk4NugqXRYDfEYX9apyOf1WJ7v4tulOaw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOMhyowYOhyDgwqyVcB0C8b1hm/OTgBTkxyRleGeK/AAIhAJKVcm1BxZ49x04AyAQzjZccLl0gHUPILf4fp9gQfJPx"}]},"_from":".","_npmVersion":"1.2.30","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"directories":{}},"2.1.0":{"name":"primus-multiplex","version":"2.1.0","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test","build":"make build"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["multiplex","realtime","websocket","engine.io","socket.io","primus","sockjs","rooms","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{},"devDependencies":{"mocha":"*","expect.js":"*","primus":"git://github.com/3rd-Eden/primus.git","ws":"~0.4.27","primus-emitter":"2.x.x","primus-rooms":"2.x.x"},"bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@2.1.0","dist":{"shasum":"fabafae7840c6b92ca3be665fc7f20b46433e77d","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-2.1.0.tgz","integrity":"sha512-r/VfzZu8K+3Toh0N1MH3C8Xm+pRu3JOOi9sCnGj8leYRgm2/pBBelM3hIlF/M1U7ibV3uAGHgpCIwwj5hJ85JA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcZ/U1D6/VjXMRphMTN/41Wz0kPyfcreA/K8XAK7L0BQIhAPOULJ8sorsyZOw5JMoVUUAa/+KtuQj15dncbBmL7iiv"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"directories":{}},"2.1.1":{"name":"primus-multiplex","version":"2.1.1","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test","build":"make build"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["multiplex","realtime","websocket","engine.io","socket.io","primus","sockjs","rooms","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{},"devDependencies":{"mocha":"*","expect.js":"*","primus":"git://github.com/3rd-Eden/primus.git","ws":"~0.4.27","primus-emitter":"2.x.x","primus-rooms":"2.x.x"},"bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@2.1.1","dist":{"shasum":"c57c4944106e0b444e51dcf27320ef666dc5642f","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-2.1.1.tgz","integrity":"sha512-oBPaQDU/44llEuYUMPABnZnXjvcHCn0RHZqzBYLb1tyfXd9aAR838XxsucOu65ZgtmAznN9AqGYwTRVcTHhW6g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEzLed29kuYdTZpBlzuJ7y5UUF8R4SVrbfg7JqVZ64vRAiBE1umfhBVvxjPNBd8mNubK99ajHOu+4jW5E8cbqMQoeg=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"directories":{}},"2.2.0":{"name":"primus-multiplex","version":"2.2.0","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test","build":"make build"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["multiplex","realtime","websocket","engine.io","socket.io","primus","sockjs","rooms","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{},"devDependencies":{"mocha":"*","expect.js":"*","primus":"git://github.com/3rd-Eden/primus.git","ws":"~0.4.27","primus-emitter":"2.x.x","primus-rooms":"2.x.x"},"bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@2.2.0","dist":{"shasum":"6738599de324103f8908675f845c2eb20377ee76","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-2.2.0.tgz","integrity":"sha512-fK+u/zy2S3WYDahz3HyE1+1o+2EYOWS09Z8Z3Yj9mNbqTc1AxoUwy7tZWBZkxICY30PVEkqBVmnV4mkBjK3Acg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE8KZYWatT2gmdqK4zlLMc2ULPjKHpjfYG0DK1bWXGanAiAXmN1bqr68zhMIIqDxzAb+PVofeZJGJygS6hlXyLXOlg=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"directories":{}},"2.2.1":{"name":"primus-multiplex","version":"2.2.1","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test","build":"make build"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["multiplex","realtime","websocket","engine.io","socket.io","primus","sockjs","rooms","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{},"devDependencies":{"mocha":"*","expect.js":"*","primus":"git://github.com/3rd-Eden/primus.git","ws":"~0.4.27","primus-emitter":"2.x.x","primus-rooms":"2.x.x"},"bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@2.2.1","dist":{"shasum":"7e3e645b5d878a757ae44554d479c339937e33fb","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-2.2.1.tgz","integrity":"sha512-ataBhT/Jn+FD63rA7Zx+qZu9llM/NaZK5ePK5kWPabjAaFx34Mi0w0dwBSrDxmhQ/G60RghgEuM1xwqfdMeKYg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRBcO6ThkC6X/92RTlrCn5UPmU9PcBhevCXwTmWxCUgwIgbk1EdNIBRGWMnjKPomaLieTXFCwaR7GGZI5yvRqOLjg="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"directories":{}},"2.2.2":{"name":"primus-multiplex","version":"2.2.2","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test","build":"make build"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["multiplex","realtime","websocket","engine.io","socket.io","primus","sockjs","rooms","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{},"devDependencies":{"mocha":"*","expect.js":"*","primus":"*","ws":"~0.4.27","primus-emitter":"2.x.x","primus-rooms":"2.x.x"},"bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@2.2.2","dist":{"shasum":"0031f705a097c4a6a7cf228859eef3c86141ca43","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-2.2.2.tgz","integrity":"sha512-dHRZx73+w838dmT9xsQ+LbbdkIrErkjAFQ/1zVnRzizSsiIbYXKQXK/urYvDhUW5622amw1LvE4HIcB70TX1sQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJx0Ty2MjEyMc4BeI2KirfGDa5wejTOR9eKYr2EAVBPAIhANGtnT1jpn2KNcdKnM9FM65rFT2scTfGTzgoIz8tnkgp"}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}]},"3.0.0":{"name":"primus-multiplex","version":"3.0.0","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test","build":"make build"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["multiplex","realtime","websocket","engine.io","socket.io","primus","sockjs","rooms","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{"predefine":"0.0.1","eventemitter3":"~0.1.1"},"devDependencies":{"mocha":"*","expect.js":"*","ws":"~0.4.27","primus":"git://github.com/primus/primus.git","primus-emitter":"~2.x","primus-rooms":"~3.x"},"bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@3.0.0","dist":{"shasum":"5f90105cf05b29b4d85f1870fadef54f6248636f","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-3.0.0.tgz"},"_from":".","_npmVersion":"1.3.26","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}]},"3.0.1":{"name":"primus-multiplex","version":"3.0.1","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test","build":"make build"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["multiplex","realtime","websocket","engine.io","socket.io","primus","sockjs","rooms","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{"predefine":"0.0.1","eventemitter3":"~0.1.1"},"devDependencies":{"mocha":"*","expect.js":"*","ws":"~0.4.27","primus":"git://github.com/primus/primus.git","primus-emitter":"~3.x.x","primus-rooms":"~3.x.x"},"bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@3.0.1","dist":{"shasum":"65bf2533c8c7c84e998dd98a6bffc0bbe09aedf3","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-3.0.1.tgz","integrity":"sha512-BLvVyYNY68iUOFiR1zuxzxOyuuEEdC9Dh+8QMDUW0w2XU5SLXjm49YUY9uD4L3BC8AF7m0ADOn7gV1TpOaMhaQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCkOnZpHg3mYO0HErcpSwXsZeUD4rcEI+lxbB6mpES3QIgGOcJl7V3LEOw0Az2730erQ60M3g3kCGMAHKb7zXcIEs="}]},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}]},"3.0.2":{"name":"primus-multiplex","version":"3.0.2","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test","build":"make build"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["multiplex","realtime","websocket","engine.io","socket.io","primus","sockjs","rooms","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{"predefine":"0.0.1","eventemitter3":"~0.1.1"},"devDependencies":{"mocha":"*","expect.js":"*","ws":"~0.4.27","primus":"git://github.com/primus/primus.git","primus-emitter":"~3.x.x","primus-rooms":"~3.x.x"},"bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@3.0.2","dist":{"shasum":"7de3b528bf0732dc9dff38a8f3b1d182078c8b9b","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-3.0.2.tgz","integrity":"sha512-618C1fyqDnb3OT2oR7ompLOG631dltBeA6q+oGK3mkYElLXOfgY4Ic1ddcYi2VE3wkjq1rLdx8gpqs+qRnBCLg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMHJbfh3z0hT97rNeufU45TiDx+DLWFz/XbwGDiR5p4gIgC1MhARvohWc5v7NeydNiEvTSIq+BKHZJZ2uwMfaTUxc="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}]},"3.0.3":{"name":"primus-multiplex","version":"3.0.3","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test","build":"make build"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["multiplex","realtime","websocket","engine.io","socket.io","primus","sockjs","rooms","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{"eventemitter3":"^0.1.5","predefine":"^0.1.1"},"devDependencies":{"expect.js":"*","mocha":"*","pre-commit":"0.0.9","primus":"git://github.com/primus/primus.git","primus-emitter":"^3.0.3","primus-rooms":"^3.1.0","ws":"^0.4.32"},"gitHead":"d5e198b5bc8cbca14a8de3053545747e71bf5ea6","bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@3.0.3","_shasum":"a2735fb353a8ec6d10642fdc9ff507b2c26a05fb","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"dist":{"shasum":"a2735fb353a8ec6d10642fdc9ff507b2c26a05fb","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-3.0.3.tgz","integrity":"sha512-Wx08Y6qXfiyAGrOzyujTh/uQW9nNY/GLcuCyTdzi0BqKU1GaJX1h6sY0xyormD0s9MgzmXHzNaTnOHim9TiApg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB6ttNUYijyUEbxA5rY9w0YVtVvmDD8DtBXiAAmDEMU/AiBa9d7psgcQLeKIF31wGAo7ZoOqAO065KF8cfNlKaVt5g=="}]}},"3.1.0":{"name":"primus-multiplex","version":"3.1.0","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test","build":"make build"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["multiplex","realtime","websocket","engine.io","socket.io","primus","sockjs","rooms","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{"eventemitter3":"^0.1.5","predefine":"^0.1.1"},"devDependencies":{"expect.js":"*","mocha":"*","pre-commit":"0.0.9","primus":"git://github.com/primus/primus.git","primus-emitter":"^3.0.3","primus-rooms":"^3.1.0","ws":"^0.4.32"},"gitHead":"d07a17411d6b319c2951a78852da7ff3e5c6f64f","bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@3.1.0","_shasum":"984a84db77de8a2d03ce214ee39739c70008ab76","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"dist":{"shasum":"984a84db77de8a2d03ce214ee39739c70008ab76","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-3.1.0.tgz","integrity":"sha512-GJj4clkKTeYnmYdKBEY6hCXB1Aq58KIVPpIEWdxQN4vmDtsoHPb+jFjfVcVA/rzZNDQph6gDvTnGuqgAjQvdjA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEzwsva8qcK224a8UGfp5L6bM0qu9aAiwWCItY8mvPirAiAo7c38kPc7zAO0e74Ef9T7bV32ZblJYk9BrqEhDe97EA=="}]}},"3.2.0":{"name":"primus-multiplex","version":"3.2.0","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["multiplex","realtime","websocket","engine.io","socket.io","primus","sockjs","rooms","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{"eventemitter3":"^1.1.1","predefine":"^0.1.2"},"devDependencies":{"expect.js":"*","mocha":"*","pre-commit":"^1.0.10","primus":"^3.1.1","primus-emitter":"^3.1.0","primus-rooms":"^3.1.0","ws":"^0.7.2"},"gitHead":"c186a1fdd813dde8ace3339e60e58961b39980a0","bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@3.2.0","_shasum":"c34674010152c33c5f08c71f2f6c68b28f307318","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"dist":{"shasum":"c34674010152c33c5f08c71f2f6c68b28f307318","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-3.2.0.tgz","integrity":"sha512-ddNbZGwvBcJlqi7pelHcVIbiqjyef3QotYS9TYm3qyPHCYkBvxOFDnanwGpFZeBWPM9K0X69qsHj0xyWx8aO+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChJhUbumgfubxTxgnp19Z6WQ52QUr7t/3+ECK4oAYCBQIhAMaG96sdo5aHdEQfMRdDxJQGNUMx0sKM7NG/X4O1Xu/x"}]}},"3.2.1":{"name":"primus-multiplex","version":"3.2.1","description":"Simple multiplexing for Primus","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"homepage":"https://github.com/cayasso/primus-multiplex","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"keywords":["multiplex","realtime","websocket","engine.io","socket.io","primus","sockjs","rooms","browserchannel","publish","subscribe"],"license":"MIT","dependencies":{"eventemitter3":"1.2.x","predefine":"0.1.x"},"devDependencies":{"expect.js":"^0.3.1","mocha":"^3.0.2","pre-commit":"^1.1.3","primus":"^6.0.1","primus-emitter":"^3.1.1","primus-rooms":"^3.4.1","ws":"^1.1.1"},"gitHead":"aec952c52fecc407c74bf1ec2490030d6c5ce8ae","bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"_id":"primus-multiplex@3.2.1","_shasum":"b0056e10c7a3ffc57eb7000b29ff400e0664cfcb","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"lpinca","email":"luigipinca@gmail.com"},"dist":{"shasum":"b0056e10c7a3ffc57eb7000b29ff400e0664cfcb","tarball":"https://registry.npmjs.org/primus-multiplex/-/primus-multiplex-3.2.1.tgz","integrity":"sha512-706ZPopcy3eSFXzh4mfDMwejUsHFb+vs1yz/Sr+ytNemJVVVl2kItu2rcq6RvVn8cz/BTgSU69K0M4fHCUm0gQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFpX9eOT4FGme907p+vCu/sD2tP2xRl9qevaWS9xM+bKAiEAjXmXwMWc+YYQCJ+YAWM8Vs68yTB70sSv3yHNfDCnI+g="}]},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"},{"name":"lpinca","email":"luigipinca@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/primus-multiplex-3.2.1.tgz_1470747503455_0.3715847118292004"}}},"readme":"# Primus Multiplex\n\n[![Build Status](https://img.shields.io/travis/cayasso/primus-multiplex/master.svg)](https://travis-ci.org/cayasso/primus-multiplex)\n[![NPM version](https://img.shields.io/npm/v/primus-multiplex.svg)](https://www.npmjs.com/package/primus-multiplex)\n\nNode.JS module that adds mutiplexing to [Primus](https://github.com/primus/primus).\n\n## Installation\n\n```\n$ npm install primus-multiplex\n```\n\n## Usage\n\n### On the Server\n\n```javascript\nvar Primus = require('primus');\nvar multiplex = require('primus-multiplex');\nvar server = require('http').createServer();\n\n// primus instance\nvar primus = new Primus(server, { transformer: 'sockjs', parser: 'JSON' });\n\n// add multiplex to Primus\nprimus.plugin('multiplex', multiplex);\n\nvar news = primus.channel('news');\nnews.on('connection', function (spark) {\n\n  spark.write('hi from the news channel');\n\n  spark.on('data', function (data) {\n    spark.write(data);\n  });\n\n});\n\nvar sport = primus.channel('sport');\nsport.on('connection', function (spark) {\n\n  spark.write('hi from the sport channel');\n\n  spark.on('data', function (data) {\n    spark.write(data);\n  });\n\n});\n\nserver.listen(8080);\n```\n\n### On the Client\n\n```javascript\nvar primus = Primus.connect('ws://localhost:8080');\n\n// Connect to channels\nvar news = primus.channel('news');\nvar sport = primus.channel('sport');\n\n// Send message\nnews.write('hi news channel');\nsport.write('hi sport channel');\n\n// Receive message\nnews.on('data', function (msg) {\n  console.log(msg);\n});\nsport.on('data', function (msg) {\n  console.log(msg);\n});\n```\n\n## API\n\n### Server\n\n#### primus.channel(name)\n\nCreate a new channel on the server.\n\n```javascript\nvar news = primus.channel('news');\nnews.on('connection', fn);\n```\n\n#### channel.write(message)\n\nBroadcast a message to all connected `Sparks` in the channel.\n\n```javascript\nnews.write(message);\n```\n\n#### channel.forEach(fn)\n\nIterare over all `Sparks` in a channel. This could also be used\nfor broadcasting to specific `Sparks`.\n\n```javascript\nnews.forEach(function (spark, id, connections) {\n  spark.write('message');\n});\n```\n\n#### channel.destroy()\n\nDestroy the channel removing all 'Sparks' and event listeners.\nThis will emit a `close` event.\n\n```javascript\nnews.on('connection', function (spark) {\n  news.destroy();\n});\n```\n\n#### channel.on('close', fn)\n\nTriggers when the destroy method is called.\n\n```javascript\nnews.on('connection', function (spark) {\n  news.destroy();\n});\n\nnews.on('close', function () {\n  console.log('channel was destroyed');\n});\n```\n\n#### spark.end([fn])\n\nEnd the connection.\n\n```javascript\nnews.on('connection', function (spark) {\n  spark.end(fn);\n});\n```\n\n### Client\n\n#### channel.write(message)\n\nSend a message to the server.\n\n```javascript\nnews.write('hi server');\n```\n\n#### channel.end()\n\nDisconnect from a channel.\n\n```javascript\nvar news = primus.channel('news');\nnews.end();\n```\n\n#### channel.on('data', fn)\nReceive `data` from the server from the corresponding `channel`.\n\n```javascript\nnews.on('data', function(msg) {\n  console.log('Received message from news channel', msg);\n});\n```\n\n### Events on main Spark (Server)\n\nThere are two useful events that will be triggered on the main primus `Spark` object, that can be very usefull for handling dynamic subscriptions, subscription notifications, etc.\n\n#### spark.on('subscribe', fn)\n\nTriggers when a connection is subscribed to a channel. Callback will return with `channel` object\nand its `spark` object.\n\n```javascript\nprimus.on('connection', function(spark) {\n  spark.on('subscribe', function(channel, channelSpark) {\n    console.log('spark %s subscribed to channel %s', channelSpark.id, channel.name);\n    // do stuff with the channel spark\n  });\n});\n```\n#### spark.on('unsubscribe', fn)\n\nTriggers when connection is unsubscribed from a channel. Callback will return the `channel` object\nand its `spark` object.\n\n```javascript\nprimus.on('connection', function(spark) {\n  spark.on('unsubscribe', function(channel, channelSpark) {\n    console.log('spark %s unsubscribed from channel %s', channelSpark.id, channel.name);\n    // channel spark is about to die\n  });\n});\n```\n\n## Protocol\n\nEach message consists of an array of four parts: `type` (`Number`), `id` (`String`),\n`topic` (`String`), and `payload` (`Mixed`).\n\nThere are three valid message types:\n\n * `Packet#MESSAGE` (`0`)  send a message with `payload` on a `topic`.\n * `Packet#SUBSCRIBE` (`1`) subscribe to a given `topic`.\n * `Packet#UNSUBSCRIBE` (`2`) unsubscribe from a `topic`.\n\nThe `topic` identifies a channel registered on the server side.\nThe `id` represent a unique connection identifier generated on the client side.\n\nEach request to subscribe to a topic from a given client has a unique id.\nThis makes it possible for a single client to open multiple independent\nchannel connection to a single server-side service.\n\nInvalid messages are simply ignored.\n\nIt's important to notice that the namespace is shared between both\nparties and it is not a good idea to use the same topic names on the\nclient and on the server side. Both parties may express a will to\nunsubscribe itself or other party from a topic.\n\n## Run tests\n\n``` bash\n$ make test\n```\n\n## Inspiration\n\nThis library was inspire by this great post:\n\n* https://www.rabbitmq.com/blog/2012/02/23/how-to-compose-apps-using-websockets/\n\n## Other plugins\n\nPrimusMultiplex is compatible with the following plugins, check the [examples](https://github.com/cayasso/primus-multiplex/tree/master/examples/node) to see more.\n\n * [primus-rooms](https://github.com/cayasso/primus-rooms)\n * [primus-emitter](https://github.com/cayasso/primus-emitter)\n * [primus-resource](https://github.com/cayasso/primus-resource)\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2013 Jonathan Brumley &lt;cayasso@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"},{"name":"lpinca","email":"luigipinca@gmail.com"}],"time":{"modified":"2022-07-13T14:59:42.653Z","created":"2013-07-25T01:54:57.319Z","0.1.0":"2013-07-25T01:54:59.818Z","0.1.1":"2013-07-25T05:24:03.727Z","0.1.2":"2013-07-28T19:55:43.540Z","0.1.3":"2013-07-30T16:39:41.492Z","1.0.0":"2013-08-20T01:20:32.906Z","1.0.1":"2013-08-20T15:28:36.224Z","1.0.2":"2013-08-29T23:56:04.531Z","1.1.0":"2013-09-19T07:15:44.764Z","1.1.1":"2013-09-26T19:38:08.763Z","1.1.2":"2013-11-01T07:32:07.917Z","2.0.0":"2013-11-04T05:43:35.483Z","2.0.1":"2013-11-05T03:42:41.449Z","2.1.0":"2013-11-18T07:25:26.638Z","2.1.1":"2013-11-19T06:48:52.258Z","2.2.0":"2013-12-07T20:02:25.551Z","2.2.1":"2014-01-02T08:08:44.749Z","2.2.2":"2014-01-08T21:43:47.307Z","3.0.0":"2014-02-11T21:40:32.903Z","3.0.1":"2014-02-19T04:48:05.310Z","3.0.2":"2014-04-30T04:05:25.257Z","3.0.3":"2014-09-14T19:48:57.388Z","3.1.0":"2014-12-02T23:58:57.776Z","3.2.0":"2015-06-22T15:10:26.910Z","3.2.1":"2016-08-09T12:58:25.544Z"},"author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"repository":{"type":"git","url":"git://github.com/cayasso/primus-multiplex.git"},"readmeFilename":"README.md","homepage":"https://github.com/cayasso/primus-multiplex","keywords":["multiplex","realtime","websocket","engine.io","socket.io","primus","sockjs","rooms","browserchannel","publish","subscribe"],"bugs":{"url":"https://github.com/cayasso/primus-multiplex/issues"},"license":"MIT"}