
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
sails-hook-sockets
Advanced tools
Implements Socket.io support in Sails.
This is a core hook in the Sails.js framework. You can override or disable it using your
.sailsrc
file or environment variables. See Concepts > Configuration for more information.
If you have further questions or are having trouble, click here.
This hook is for Sails v1.0 and up.
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.
This repo contains a hook, one of the building blocks Sails is made out of.
This hook's responsibilities are:
after
"shadow" routes...
GET /__getcookie
sails
app object:
sails.sockets.*
(see Reference > WebSockets > sails.sockets)Click here to check out the semver range for this hook's Socket.io dependency.
For reproducibility, we always pin 3rd party dependencies to a specific version, using a consistent verified version string when possible (see kit).
To report a bug, click here.
Please observe the guidelines and conventions laid out in the Sails project contribution guide when opening issues or submitting pull requests.
First, clone this repo, cd into it, and install dependencies:
git clone https://github.com/balderdashy/sails-hook-sockets.git
cd sails-hook-sockets
npm install
To run all the tests, start a local redis server on port 6380 and then run the tests using mocha:
redis-server --port 6380 --requirepass 'secret'
npm test
Alternatively, you can run a particular set of tests with:
node ./node_modules/mocha/bin/mocha -g 'without session'
(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.)
The Sails framework is free and open-source under the MIT License.
FAQs
Implements socket.io support in Sails
The npm package sails-hook-sockets receives a total of 12,378 weekly downloads. As such, sails-hook-sockets popularity was classified as popular.
We found that sails-hook-sockets demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.