{"_id":"socket.io-handshake","_rev":"33-9f69242484e1af219f9577acfab17185","name":"socket.io-handshake","description":"socket.io v1.x sessions","dist-tags":{"latest":"0.0.10"},"versions":{"0.0.1":{"name":"socket.io-handshake","version":"0.0.1","description":"socket.io v1.x sessions","main":"index.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git://github.com/eiriklv/socket.io-handshake.git"},"keywords":["socket.io","sessions"],"contributors":[{"name":"Nathan G. Romano","email":"nathan.g.romano@gmail.com"}],"license":"MIT","bugs":{"url":"https://github.com/eiriklv/socket.io-handshake/issues"},"homepage":"https://github.com/eiriklv/socket.io-handshake","devDependencies":{"sandboxed-module":"^0.3.0","grunt-jasmine-bundle":"^0.2.0","coffee-script":"^1.7.1","grunt-cli":"^0.1.13","grunt":"^0.4.5"},"dependencies":{"connect":"^2.19.5","cookie-parser":"^1.1.0","express-session":"^1.2.1"},"_id":"socket.io-handshake@0.0.1","dist":{"shasum":"a83e2843aaf9c24d54e0d235d7d2b6ab1c064692","tarball":"https://registry.npmjs.org/socket.io-handshake/-/socket.io-handshake-0.0.1.tgz","integrity":"sha512-TJEgGtRfF0km1blkQMeSxOs+HWtakE54Z6ehLPU+svOAFUwdgBprn3nhVpWBurYa6X8kky+wS8SCC/BQQQeQvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDa26sN7uBkoQvZj+n0POeM+O2co7cYvZCcrTf5MyNa0AiAdekW2pSIweUSso/YzZPa9topniKBmuJutibMmk4gyvQ=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"nromano","email":"nathan.g.romano@gmail.com"},"maintainers":[{"name":"nromano","email":"nathan.g.romano@gmail.com"}]},"0.0.3":{"name":"socket.io-handshake","version":"0.0.3","description":"socket.io v1.x sessions","main":"index.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git://github.com/eiriklv/socket.io-handshake.git"},"keywords":["socket.io","sessions","handshake"],"contributors":[{"name":"Nathan G. Romano","email":"nathan.g.romano@gmail.com"}],"license":"MIT","bugs":{"url":"https://github.com/eiriklv/socket.io-handshake/issues"},"homepage":"https://github.com/eiriklv/socket.io-handshake","devDependencies":{"sandboxed-module":"^0.3.0","grunt-jasmine-bundle":"^0.2.0","coffee-script":"^1.7.1","grunt-cli":"^0.1.13","grunt":"^0.4.5"},"dependencies":{"cookie-parser":"~1.3.1","express-session":"~1.5.0"},"_id":"socket.io-handshake@0.0.3","dist":{"shasum":"db9afa8c874208ce3a1287145306ba1bf20bb50b","tarball":"https://registry.npmjs.org/socket.io-handshake/-/socket.io-handshake-0.0.3.tgz","integrity":"sha512-tr+bYwvE6odvMTMIFtNofRl2hsj/WGvhVFt3/+rvQdMozp82XgZShM5wi8koA52KUgjIslOmyC17YxAh45LYMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF84e3B91H6f0P6uhqVTABMeEZoqnUi/QouF2D9g3akNAiBOGusPjwwalsMFC0P8xGDciBdgg4ORhyIa9IEcH+8yXQ=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"nromano","email":"nathan.g.romano@gmail.com"},"maintainers":[{"name":"nromano","email":"nathan.g.romano@gmail.com"}]},"0.0.4":{"name":"socket.io-handshake","version":"0.0.4","description":"socket.io v1.x sessions","main":"index.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git://github.com/eiriklv/socket.io-handshake.git"},"keywords":["socket.io","sessions","handshake"],"contributors":[{"name":"Nathan G. Romano","email":"nathan.g.romano@gmail.com"}],"license":"MIT","bugs":{"url":"https://github.com/eiriklv/socket.io-handshake/issues"},"homepage":"https://github.com/eiriklv/socket.io-handshake","devDependencies":{"sandboxed-module":"^0.3.0","grunt-jasmine-bundle":"^0.2.0","coffee-script":"^1.7.1","grunt-cli":"^0.1.13","grunt":"^0.4.5"},"dependencies":{"cookie-parser":"~1.3.1","express-session":"~1.5.0"},"_id":"socket.io-handshake@0.0.4","dist":{"shasum":"3d82e9288a76d6b549695f869f64643a240e5de6","tarball":"https://registry.npmjs.org/socket.io-handshake/-/socket.io-handshake-0.0.4.tgz","integrity":"sha512-p/MrR2PMzputvpcrNxMg3LilKB61IgLfTWT9YAJJl8VbcBjuzmiHbA5FwynmxY/bRsbxyPznGatAeuzxGM0xHw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHkONK9SNZTPIy8fB42r6RGzEfIU3B15ZxM2wVkFbRwHAiA6yIT+g6u/sDcIsuBZ7PHLacaLbH88zQHqAJVS+mGwtA=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"nromano","email":"nathan.g.romano@gmail.com"},"maintainers":[{"name":"nromano","email":"nathan.g.romano@gmail.com"}]},"0.0.5":{"name":"socket.io-handshake","version":"0.0.5","description":"socket.io v1.x sessions","main":"index.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git://github.com/eiriklv/socket.io-handshake.git"},"keywords":["socket.io","sessions","handshake"],"contributors":[{"name":"Nathan G. Romano","email":"nathan.g.romano@gmail.com"}],"license":"MIT","bugs":{"url":"https://github.com/eiriklv/socket.io-handshake/issues"},"homepage":"https://github.com/eiriklv/socket.io-handshake","devDependencies":{"sandboxed-module":"^0.3.0","grunt-jasmine-bundle":"^0.2.0","coffee-script":"^1.7.1","grunt-cli":"^0.1.13","grunt":"^0.4.5"},"dependencies":{"cookie-parser":"~1.3.1","express-session":"~1.5.0"},"_id":"socket.io-handshake@0.0.5","dist":{"shasum":"12a096caf4b9de716fb39ae54886f71d64bdb402","tarball":"https://registry.npmjs.org/socket.io-handshake/-/socket.io-handshake-0.0.5.tgz","integrity":"sha512-ZLAWQ3Lv3dNBtQOT2cDdTJnJNibJZkPharGsQwMS4BCaRa1n2DBvtqXt5DklbHbbLdVsfF7x/vVZFeNIxaaS5w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHngYk2Y9IPPj1d88Glu7TkdTjgq2k/zv0NJKGsXbomQIhALaRXYHAgGER7VTrVvP2xRhf4n3IAwERP79D6Wc1qEPT"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"nromano","email":"nathan.g.romano@gmail.com"},"maintainers":[{"name":"nromano","email":"nathan.g.romano@gmail.com"}]},"0.0.6":{"name":"socket.io-handshake","version":"0.0.6","description":"socket.io v1.x sessions","main":"index.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git://github.com/eiriklv/socket.io-handshake.git"},"keywords":["socket.io","sessions","handshake"],"contributors":[{"name":"Nathan G. Romano","email":"nathan.g.romano@gmail.com"}],"license":"MIT","bugs":{"url":"https://github.com/eiriklv/socket.io-handshake/issues"},"homepage":"https://github.com/eiriklv/socket.io-handshake","devDependencies":{"sandboxed-module":"^0.3.0","grunt-jasmine-bundle":"^0.2.0","coffee-script":"^1.7.1","grunt-cli":"^0.1.13","grunt":"^0.4.5"},"dependencies":{"cookie-parser":"~1.3.1","express-session":"^1.6"},"gitHead":"7e2f02885bda101f16d71d5a6bb3a5beedd7f11e","_id":"socket.io-handshake@0.0.6","_shasum":"e8a18f59a3005c2c280963d82f6198ea1f6d2375","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"nromano","email":"nathan.g.romano@gmail.com"},"maintainers":[{"name":"nromano","email":"nathan.g.romano@gmail.com"}],"dist":{"shasum":"e8a18f59a3005c2c280963d82f6198ea1f6d2375","tarball":"https://registry.npmjs.org/socket.io-handshake/-/socket.io-handshake-0.0.6.tgz","integrity":"sha512-OMvtGVpRrvZwAsGMKsM1g++Y+GNzkAqDNORI1p1kNHuYm1q2RJEyYhXPgYPNaoGwigqFrKtI3ov27cJ8UBLyyQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVIC6r3DM6CWlkNuSFN07qDez8HbJIcbaALKaz8cxPqQIhAJrAKp7mdxJWkNH9Y+Zjc8z0HJlUWFxAs7KZgImTTIR/"}]}},"0.0.7":{"name":"socket.io-handshake","version":"0.0.7","description":"socket.io v1.x sessions","main":"index.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git://github.com/eiriklv/socket.io-handshake.git"},"keywords":["socket.io","sessions","handshake"],"contributors":[{"name":"Nathan G. Romano","email":"nathan.g.romano@gmail.com"}],"license":"MIT","bugs":{"url":"https://github.com/eiriklv/socket.io-handshake/issues"},"homepage":"https://github.com/eiriklv/socket.io-handshake","devDependencies":{"sandboxed-module":"^0.3.0","grunt-jasmine-bundle":"^0.2.0","coffee-script":"^1.7.1","grunt-cli":"^0.1.13","grunt":"^0.4.5"},"dependencies":{"cookie-parser":"~1.3.1","express-session":"^1.6","debug":"^1.0.2"},"_id":"socket.io-handshake@0.0.7","dist":{"shasum":"317f7264a090f31e2ed206a6f0fa120eff77ff8f","tarball":"https://registry.npmjs.org/socket.io-handshake/-/socket.io-handshake-0.0.7.tgz","integrity":"sha512-S/aBz5j1cNlGFGPTp+/wkH8w6j7IcQJPcEKUG57R843Hv3H4OO5IfC+YeaWRcrNApoWhVMtX6A/85fOxRXy2XQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG68D+BIFPbZPHiCdvboMtY6/nnWiSx3jK3iE6FQbVh2AiEA49+yFyg9slhgR9/UbkWxZR6/RZ9Pi1xAGT/v6PyHdhU="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"nromano","email":"nathan.g.romano@gmail.com"},"maintainers":[{"name":"nromano","email":"nathan.g.romano@gmail.com"}]},"0.0.8":{"name":"socket.io-handshake","version":"0.0.8","description":"socket.io v1.x sessions","main":"index.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git://github.com/eiriklv/socket.io-handshake.git"},"keywords":["socket.io","sessions","handshake"],"contributors":[{"name":"Nathan G. Romano","email":"nathan.g.romano@gmail.com"}],"license":"MIT","bugs":{"url":"https://github.com/eiriklv/socket.io-handshake/issues"},"homepage":"https://github.com/eiriklv/socket.io-handshake","devDependencies":{"sandboxed-module":"^0.3.0","grunt-jasmine-bundle":"^0.2.0","coffee-script":"^1.7.1","grunt-cli":"^0.1.13","grunt":"^0.4.5"},"dependencies":{"cookie-parser":"~1.3.1","express-session":"^1.6","debug":"^1.0.2"},"_id":"socket.io-handshake@0.0.8","dist":{"shasum":"1813e9c613a60d17627df066d44982e4748d3566","tarball":"https://registry.npmjs.org/socket.io-handshake/-/socket.io-handshake-0.0.8.tgz","integrity":"sha512-D56vhpVZKphwVjBA3nrAb9PwMG6aDMUnJmFDXk60GXn3G97B17giSuZWDbipdlAM9NMKshvM7XgDrfPXn1f/YQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2SQnGsOQ5eIlgntc4Py0lReHZfLnRGJhjX+GFvl9DGwIhAIhxYz7D9vpEGSPrjgLoqEozUVVFQosUqOCUVVbqBefw"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"nromano","email":"nathan.g.romano@gmail.com"},"maintainers":[{"name":"nromano","email":"nathan.g.romano@gmail.com"}]},"0.0.9":{"name":"socket.io-handshake","version":"0.0.9","description":"socket.io v1.x sessions","main":"index.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git://github.com/eiriklv/socket.io-handshake.git"},"keywords":["socket.io","sessions","handshake"],"contributors":[{"name":"Nathan G. Romano","email":"nathan.g.romano@gmail.com"}],"license":"MIT","bugs":{"url":"https://github.com/eiriklv/socket.io-handshake/issues"},"homepage":"https://github.com/eiriklv/socket.io-handshake","devDependencies":{"sandboxed-module":"^0.3.0","grunt-jasmine-bundle":"^0.2.0","coffee-script":"^1.7.1","grunt-cli":"^0.1.13","grunt":"^0.4.5"},"dependencies":{"cookie-parser":"~1.3.1","express-session":"^1.6","debug":"^1.0.2"},"gitHead":"ae1548d5803913a6524c3313453abe329aa079c6","_id":"socket.io-handshake@0.0.9","_shasum":"92681ec40cad5c63a3fdf4916852bce1bee090de","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"nromano","email":"nathan.g.romano@gmail.com"},"maintainers":[{"name":"nromano","email":"nathan.g.romano@gmail.com"}],"dist":{"shasum":"92681ec40cad5c63a3fdf4916852bce1bee090de","tarball":"https://registry.npmjs.org/socket.io-handshake/-/socket.io-handshake-0.0.9.tgz","integrity":"sha512-bfuge0MejSWU36b6IlKeWfwh4ZlvltbOCt67PFvpjRo8MXoq7JTcShUfKvhdAHISRFsWofyDxqB4fqUPbK+YKw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEcy+HlukRyIjsfUFhT5fs2muHdx4Qj/Qf27DTRIxXeMAiBzKWl0Xy6TGtEdVO7DVSH8/nt98w+Tsc8qdgzeujhGIA=="}]}},"0.0.10":{"name":"socket.io-handshake","version":"0.0.10","description":"socket.io v1.x sessions","main":"index.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git://github.com/eiriklv/socket.io-handshake.git"},"keywords":["socket.io","sessions","handshake"],"contributors":[{"name":"Nathan G. Romano","email":"nathan.g.romano@gmail.com"}],"license":"MIT","bugs":{"url":"https://github.com/eiriklv/socket.io-handshake/issues"},"homepage":"https://github.com/eiriklv/socket.io-handshake","devDependencies":{"sandboxed-module":"^0.3.0","grunt-jasmine-bundle":"^0.2.0","coffee-script":"^1.7.1","grunt-cli":"^0.1.13","grunt":"^0.4.5"},"dependencies":{"cookie-parser":"~1.3.1","express-session":"^1.6","debug":"^2.0.0"},"gitHead":"ae1548d5803913a6524c3313453abe329aa079c6","_id":"socket.io-handshake@0.0.10","_shasum":"1fe8765d55947e67e35487d6fa4f0eddc6fd49ba","_from":".","_npmVersion":"1.4.27","_npmUser":{"name":"nromano","email":"nathan.g.romano@gmail.com"},"maintainers":[{"name":"nromano","email":"nathan.g.romano@gmail.com"}],"dist":{"shasum":"1fe8765d55947e67e35487d6fa4f0eddc6fd49ba","tarball":"https://registry.npmjs.org/socket.io-handshake/-/socket.io-handshake-0.0.10.tgz","integrity":"sha512-gFT6wH/B7Hc9h4aCEJ/i8ajjeJPuIxQYnf3m/akxd+rQQ2/VJrj3apE1IiPDHBqyYb0qqdh3rHeH2nNAshF7iQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHprI0SjMWAsfUjFLY/Mm78fED4Bl6CogY4bPf/1lDqfAiEA5Y8HNLMUoWODJvcrQrHNzXXLwygwcKL88gx4q8QsGe4="}]}}},"readme":"\n[![Build Status](https://travis-ci.org/turbonetix/socket.io-handshake.svg?branch=master)](https://travis-ci.org/turbonetix/socket.io-handshake)\n[![NPM version](https://badge.fury.io/js/socket.io-handshake.svg)](http://badge.fury.io/js/socket.io-handshake)\n[![David DM](https://david-dm.org/turbonetix/socket.io-handshake.png)](https://david-dm.org/turbonetix/socket.io-handshake.png)\n\nSession middleware for [socket.io](https://github.com/Automattic/socket.io \"socket.io\") v1.x;\n\n# Examples\n\n```javascript\nvar socketSessions = require('socket.io-handshake');\nvar io = require('socket.io')(3000);\nio.use( socketSessions() );\n```\n\nUsing [connect-redis](https://www.npmjs.org/package/connect-redis \"connect-redis\") for our session store.\n\n```javascript\nvar session = require('express-session');\nvar RedisStore = require('connect-redis')(session);\nvar sessionStore = new RedisStore();\nvar cookieParser = require('cookie-parser');\nvar socketHandshake = require('socket.io-handshake');\n\nvar io = require('socket.io')(3000);\nio.use(socketHandshake({store: sessionStore, key:'sid', secret:'secret', parser:cookieParser()}));\n```\n\nTo access the session data.\n\n```javascript\nio.on('connection' function (sock) {\n  if (!sock.handshake.session.name) {\n    sock.emit('get name');\n  };\n  sock.on('set nama', function (name) {\n    sock.handhsake.session.name = name;\n    sock.handshake.session.save();\n  });\n});\n```\n\n# Installation and Environment Setup\n\nInstall node.js (See download and install instructions here: http://nodejs.org/).\n\nClone this repository\n\n    > git clone git@github.com:turbonetix/socket.io-handshake.git\n\ncd into the directory and install the dependencies\n\n    > cd socket.io-handshake\n    > npm install && npm shrinkwrap --dev\n\n# Running Tests\n\nInstall coffee-script\n\n    > npm install coffee-script -g\n\nTests are run using grunt.  You must first globally install the grunt-cli with npm.\n\n    > sudo npm install -g grunt-cli\n\n## Unit Tests\n\nTo run the tests, just run grunt\n\n    > grunt spec\n\n## TODO\n","maintainers":[{"name":"nromano","email":"nathan.g.romano@gmail.com"}],"time":{"modified":"2022-06-26T21:55:12.358Z","created":"2014-06-11T21:12:08.960Z","0.0.1":"2014-06-11T21:12:08.960Z","0.0.3":"2014-06-20T08:07:43.961Z","0.0.4":"2014-06-22T02:15:30.147Z","0.0.5":"2014-06-22T02:54:44.137Z","0.0.6":"2014-06-29T18:11:40.142Z","0.0.7":"2014-07-02T22:54:00.074Z","0.0.8":"2014-07-02T22:58:20.847Z","0.0.9":"2014-08-02T16:23:37.296Z","0.0.10":"2014-10-02T15:57:31.379Z"},"homepage":"https://github.com/eiriklv/socket.io-handshake","keywords":["socket.io","sessions","handshake"],"repository":{"type":"git","url":"git://github.com/eiriklv/socket.io-handshake.git"},"contributors":[{"name":"Nathan G. Romano","email":"nathan.g.romano@gmail.com"}],"bugs":{"url":"https://github.com/eiriklv/socket.io-handshake/issues"},"license":"MIT","readmeFilename":"README.md","users":{"nromano":true,"eiriklv":true,"alexcrack":true,"saifee":true,"moe.duffdude":true,"henryorrin":true,"hyteer":true}}