{"name":"sails-hook-sockets","version":"3.0.2","description":"Implements socket.io support in Sails","keywords":["socket.io","sails.js","sails-hook","hook"],"dependencies":{"@sailshq/lodash":"^3.10.2","async":"2.6.4","flaverr":"^1.0.0","machinepack-redis":"^2.0.3","machinepack-urls":"^6.0.2-0","proxy-addr":"1.1.5","semver":"7.5.2","socket.io":"4.8.1","uid2":"0.0.3"},"devDependencies":{"ioredis":"2.4.0","machinepack-fs":"^3.0.0","machinepack-http":"^8.0.0","mocha":"3.1.0","redis":"2.6.3","sails":"^1.0.0-12","sails.io.js":"^1.0.0","socket.io-client":"2.0.3","socket.io-redis":"6.1.0"},"scripts":{"test":"node ./node_modules/mocha/bin/mocha test --timeout 5000"},"main":"index.js","repository":{"type":"git","url":"git://github.com/balderdashy/sails-hook-sockets.git"},"sails":{"isHook":true},"author":{"name":"Mike McNeil"},"license":"MIT","_id":"sails-hook-sockets@3.0.2","gitHead":"bd8d1c051e883cccf08f23be9f2c27b24d00ab65","bugs":{"url":"https://github.com/balderdashy/sails-hook-sockets/issues"},"homepage":"https://github.com/balderdashy/sails-hook-sockets#readme","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-qihISBhn0PIYf7pK0ZeRsS0Lo/McGtVYCNHaABBJ3Cc4LSsQQYqhv9erbapR53zVswn6tQsEIcOJbIFn/XA/zA==","shasum":"8f08ebfe5c44ea72fdda2bc01435806054f16f19","tarball":"http://registry-npm.ywwl.com/sails-hook-sockets/download/sails-hook-sockets-3.0.2.tgz","fileCount":61,"unpackedSize":235957,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCvXqQiLSBMU2RuM7S11FZObMY0Wd1HZM3nkQC9XDfk4gIhAPwN9QQ7dHFTsFm4hjbjJKh0QnQfH/WzznKP+fFxMBjb"}],"size":53711,"noattachment":false,"key":"/sails-hook-sockets/-/sails-hook-sockets-3.0.2.tgz"},"_npmUser":{"name":"eashaw","email":"eashaw@sailsjs.com"},"directories":{},"maintainers":[{"name":"particlebanana","email":"particlebanana@gmail.com"},{"name":"rachaelshaw","email":"rachaelshaw@treeline.io"},{"name":"sgress454","email":"scottmgress@gmail.com"},{"name":"balderdashy","email":"mike@balderdash.co"},{"name":"mikermcneil","email":"npm@sailsjs.com"},{"name":"eashaw","email":"eashaw@sailsjs.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sails-hook-sockets_3.0.2_1743530408567_0.3605615533805788"},"_hasShrinkwrap":false,"readme":"# sails-hook-sockets\n\nImplements Socket.io support in Sails.\n\n> This is a core hook in the [Sails.js framework](http://sailsjs.com).  You can override or disable it using your `.sailsrc` file or environment variables.  See [Concepts > Configuration](http://sailsjs.com/documentation/concepts/configuration) for more information.\n\n\n## Help\n\nIf you have further questions or are having trouble, click [here](http://sailsjs.com/support).\n\n#### What version of Sails is this for?\n\nThis hook is for Sails v1.0 and up.\n\n> Prior to Sails v1.0, this hook was a dependency of Sails core.  But now, it is now installed as a direct dependency of your Sails app.\n\n#### What is this?  What does it do?\n\nThis repo contains a hook, one of the building blocks Sails is made out of.\n\nThis hook's responsibilities are:\n\n+ **When initialized...**\n  + fire up socket.io server\n  + listen for connect / disconnect events\n    + listen for get/post/put/delete/patch events\n      + create bare-bones request and response contexts, then pass them to the core interpreter in Sails to be routed on the fly.\n  + Bind `after` \"shadow\" routes...\n    + `GET /__getcookie`\n  + Expose on the `sails` app object:\n    + `sails.sockets.*` _(see [Reference > WebSockets > sails.sockets](http://sailsjs.com/documentation/reference/web-sockets/sails-sockets))_\n\n\n#### What version of Socket.io does this hook use?\n\nClick [here](./package.json) to check out the semver range for this hook's Socket.io dependency.\n\n> For reproducibility, we always pin 3rd party dependencies to a specific version, using a consistent verified version string when possible (see [kit](http://github.com/mikermcneil/kit)).\n\n\n#### Bugs &nbsp; [![NPM version](https://badge.fury.io/js/sails-hook-sockets.svg)](http://npmjs.com/package/sails-hook-sockets)\n\nTo report a bug, [click here](http://sailsjs.com/bugs).\n\n\n## Contributing\n\nPlease observe the guidelines and conventions laid out in the [Sails project contribution guide](http://sailsjs.com/documentation/contributing) when opening issues or submitting pull requests.\n\n[![NPM](https://nodei.co/npm/sails-hook-sockets.png?downloads=true)](http://npmjs.com/package/sails-hook-sockets)\n\n\n#### Running the tests\n\nFirst, clone this repo, cd into it, and install dependencies:\n\n```sh\ngit clone https://github.com/balderdashy/sails-hook-sockets.git\ncd sails-hook-sockets\nnpm install\n```\n\n##### Run them all\n\nTo run all the tests, start a local redis server on port 6380 and then run the tests using mocha:\n\n```sh\nredis-server --port 6380 --requirepass 'secret'\nnpm test\n```\n\n\n##### Run only certain tests\n\nAlternatively, you can run a particular set of tests with:\n\n```sh\nnode ./node_modules/mocha/bin/mocha -g 'without session'\n```\n\n> (this may be useful if you don't want to wait for all the tests to run, or e.g. if you aren't able to install a redis server locally.  However please make sure all the tests pass before submitting a PR.)\n\n\n\n## License\n\nThe [Sails framework](http://sailsjs.com) is free and open-source under the [MIT License](http://sailsjs.com/license).\n\n","publish_time":1743530408827,"_cnpm_publish_time":1743530408827,"dist-tags":{"for-sails-0.12":"0.13.14","latest":"3.0.2","patch-v11-socketio":"0.11.29"}}