{"_id":"xsockets","_rev":"9-acdc6210c20bd25ce578c479cc4031fb","name":"xsockets","description":"a socket optimized for cross-domain use for the web and node","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"xsockets","description":"a socket optimized for cross-domain use for the web and node","keywords":["cross-domain","cors","socket","sockets"],"version":"0.2.0","homepage":"https://github.com/gett/xsockets","author":{"name":"Ge.tt","email":"hello@ge.tt"},"contributors":[{"name":"Mathias Buus Madsen","email":"m@ge.tt"}],"dependencies":{"common":">=0.2.0","router":">=0.2.0","message-sockets":">=0.2.0"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"_id":"xsockets@0.2.0","devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.6.1","_defaultsLoaded":true,"dist":{"shasum":"c9e4006c26b664e7daed08e2b21a3a2c7bd53d7d","tarball":"https://registry.npmjs.org/xsockets/-/xsockets-0.2.0.tgz","integrity":"sha512-6t/6AkeESQxXlZLum9XIE56EAgig5G8JRrEKSni1Y7eRvKeFj2i29AhIbcsBldWJDIcew+LxxS/FnZ8CMDUG4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB0qkXLkP9t7h008Laq3C28cUY24fnGS7M7Lp5/Iu/KRAiB9JgvhsnHetzUo8m7LMk1N1d6mm8EkCNM+OFVOguhR3Q=="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{}}},"readme":"# xsockets\n\na socket optimized for cross-domain use for the web and node. it's easy to use:\n\n``` js\nvar sockets = require('xsockets');\n\nsockets.listen(9999, function(socket) {\n\tsocket.on('message', function(message) {\n\t\tsocket.send(message); // echo\n\t});\n});\n\nvar socket = sockets.connect('localhost:9999');\n\nsocket.send({hello:'world'});\nsocket.on('message', function(message) {\n\tconsole.log(message);\n});\n\n```","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"time":{"modified":"2022-06-29T06:03:11.127Z","created":"2011-11-17T10:48:27.384Z","0.2.0":"2011-11-17T10:48:28.917Z","0.2.1":"2011-11-17T10:50:18.871Z"},"author":{"name":"Ge.tt","email":"hello@ge.tt"}}