fastify-ws
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -5,5 +5,3 @@ 'use strict' | ||
fastify.register(require('../.'), { | ||
library: 'uws' // Use the uws library instead of the default ws library | ||
}) | ||
fastify.register(require('../.')) | ||
@@ -10,0 +8,0 @@ fastify.ready(err => { |
@@ -21,4 +21,4 @@ 'use strict' | ||
}, { | ||
fastify: '1.x', | ||
fastify: '1.7.0 - 2', | ||
name: 'fastify-ws' | ||
}) |
{ | ||
"name": "fastify-ws", | ||
"version": "1.0.0", | ||
"description": "Basic WebSocket support for Fastify built on the blazing fast ws and uws libraries.", | ||
"version": "1.0.1", | ||
"description": "Basic WebSocket support for Fastify built on the ws and uws libraries.", | ||
"main": "index.js", | ||
@@ -29,16 +29,16 @@ "scripts": { | ||
"devDependencies": { | ||
"eslint": "^4.19.1", | ||
"fastify": "^1.7.0", | ||
"eslint": "^5.14.1", | ||
"fastify": "1.7.0 - 2", | ||
"pre-commit": "^1.2.2", | ||
"snazzy": "^7.0.0", | ||
"standard": "^10.0.3", | ||
"tap": "^10.7.2" | ||
"snazzy": "^8.0.0", | ||
"standard": "^12.0.1", | ||
"tap": "^12.5.3" | ||
}, | ||
"dependencies": { | ||
"bufferutil": "^3.0.5", | ||
"fastify-plugin": "^1.2.0", | ||
"utf-8-validate": "^4.0.2", | ||
"uws": "10.148.0", | ||
"ws": "^5.2.1" | ||
"bufferutil": "^4.0.1", | ||
"fastify-plugin": "^1.5.0", | ||
"utf-8-validate": "^5.0.2", | ||
"uws": "10.148.1", | ||
"ws": "^6.1.4" | ||
} | ||
} |
@@ -5,3 +5,3 @@ # fastify-ws | ||
WebSocket support for [Fastify](https://github.com/fastify/fastify) built on the blazing fast [ws](http://npm.im/ws) and [uws](http://npm.im/uws) libraries. | ||
WebSocket support for [Fastify](https://github.com/fastify/fastify) built on the [ws](http://npm.im/ws) and [uws](http://npm.im/uws) libraries. | ||
@@ -17,5 +17,3 @@ ## Example | ||
fastify.register(require('fastify-ws'), { | ||
library: 'uws' // Use the uws library instead of the default ws library | ||
}) | ||
fastify.register(require('fastify-ws')) | ||
@@ -58,6 +56,8 @@ fastify.ready(err => { | ||
If you choose to use `uws` as your WebSocket library, ensure that you have configured your system properly and understand that the API is a slightly reduced subset of `ws`'s. | ||
The creator of `uws` has ceased development on `uws` and started working on their new project, [uWebSockets.js](https://github.com/uNetworking/uWebSockets.js). If you want high-performance web socket support in Fastify, the last real release of `uws` (10.148.1) is probably your best bet, but given that it is now an abandoned project I can't recommend anyone use it for any non-throwaway projects. If you're using this library, I'd recommend you stick with the default `ws` option. | ||
In addition, if you choose to use `uws` as your WebSocket library, ensure that you have configured your system properly and understand that the API is a slightly reduced subset of `ws`'s. | ||
## License | ||
Licensed under [MIT](./LICENSE). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6723
8
94
+ Addedbufferutil@4.0.8(transitive)
+ Addednode-gyp-build@4.8.4(transitive)
+ Addedutf-8-validate@5.0.10(transitive)
+ Addeduws@10.148.1(transitive)
+ Addedws@6.2.3(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedaproba@1.2.0(transitive)
- Removedare-we-there-yet@1.1.7(transitive)
- Removedbindings@1.3.1(transitive)
- Removedbl@1.2.3(transitive)
- Removedbuffer-alloc@1.2.0(transitive)
- Removedbuffer-alloc-unsafe@1.1.0(transitive)
- Removedbuffer-fill@1.0.0(transitive)
- Removedbufferutil@3.0.5(transitive)
- Removedchownr@1.1.4(transitive)
- Removedcode-point-at@1.1.0(transitive)
- Removedconsole-control-strings@1.1.0(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removeddecompress-response@3.3.0(transitive)
- Removeddeep-extend@0.6.0(transitive)
- Removeddelegates@1.0.0(transitive)
- Removeddetect-libc@1.0.3(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedexpand-template@1.1.1(transitive)
- Removedfs-constants@1.0.0(transitive)
- Removedgauge@2.7.4(transitive)
- Removedgithub-from-package@0.0.0(transitive)
- Removedhas-unicode@2.0.1(transitive)
- Removedinherits@2.0.4(transitive)
- Removedini@1.3.8(transitive)
- Removedis-fullwidth-code-point@1.0.0(transitive)
- Removedisarray@1.0.0(transitive)
- Removedmimic-response@1.0.1(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removednan@2.10.0(transitive)
- Removednode-abi@2.30.1(transitive)
- Removednoop-logger@0.1.1(transitive)
- Removednpmlog@4.1.2(transitive)
- Removednumber-is-nan@1.0.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedos-homedir@1.0.2(transitive)
- Removedprebuild-install@4.0.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedpump@1.0.32.0.1(transitive)
- Removedrc@1.2.8(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedsemver@5.7.2(transitive)
- Removedset-blocking@2.0.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedsimple-concat@1.0.1(transitive)
- Removedsimple-get@2.8.2(transitive)
- Removedstring-width@1.0.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedstrip-json-comments@2.0.1(transitive)
- Removedtar-fs@1.16.3(transitive)
- Removedtar-stream@1.6.2(transitive)
- Removedto-buffer@1.1.1(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedutf-8-validate@4.0.2(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removeduws@10.148.0(transitive)
- Removedwhich-pm-runs@1.1.0(transitive)
- Removedwide-align@1.1.5(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedws@5.2.4(transitive)
- Removedxtend@4.0.2(transitive)
Updatedbufferutil@^4.0.1
Updatedfastify-plugin@^1.5.0
Updatedutf-8-validate@^5.0.2
Updateduws@10.148.1
Updatedws@^6.1.4