fastify-ws
Advanced tools
Comparing version
@@ -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
6723
-94.3%8
-11.11%94
-2.08%+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated
Updated