mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 17:54:44 +12:00
docs: clarify what zlib-sync does (#3785)
* docs: Clarify what zlib-sync does * docs: Update docs site welcome * src/docs: Remove `ws.compress` from docs This is a deprecated parameter and you shouldn't use it unless you have zlib-sync installed, and even then, compression is automatically enabled * docs: Apply suggestion Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com> Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
This commit is contained in:
parent
6770c7c786
commit
21d37ed0cc
3 changed files with 2 additions and 4 deletions
|
@ -51,7 +51,7 @@ Using opusscript is only recommended for development environments where @discord
|
|||
For production bots, using @discordjs/opus should be considered a necessity, especially if they're going to be running on multiple servers.
|
||||
|
||||
### Optional packages
|
||||
- [zlib-sync](https://www.npmjs.com/package/zlib-sync) for faster WebSocket data inflation (`npm install zlib-sync`)
|
||||
- [zlib-sync](https://www.npmjs.com/package/zlib-sync) for WebSocket data compression and inflation (`npm install zlib-sync`)
|
||||
- [erlpack](https://github.com/discordapp/erlpack) for significantly faster WebSocket data (de)serialisation (`npm install discordapp/erlpack`)
|
||||
- One of the following packages can be installed for faster voice packet encryption and decryption:
|
||||
- [sodium](https://www.npmjs.com/package/sodium) (`npm install sodium`)
|
||||
|
|
|
@ -46,7 +46,7 @@ Using opusscript is only recommended for development environments where @discord
|
|||
For production bots, using @discordjs/opus should be considered a necessity, especially if they're going to be running on multiple servers.
|
||||
|
||||
### Optional packages
|
||||
- [zlib-sync](https://www.npmjs.com/package/zlib-sync) for faster WebSocket data inflation (`npm install zlib-sync`)
|
||||
- [zlib-sync](https://www.npmjs.com/package/zlib-sync) for WebSocket data compression and inflation (`npm install zlib-sync`)
|
||||
- [erlpack](https://github.com/discordapp/erlpack) for significantly faster WebSocket data (de)serialisation (`npm install discordapp/erlpack`)
|
||||
- One of the following packages can be installed for faster voice packet encryption and decryption:
|
||||
- [sodium](https://www.npmjs.com/package/sodium) (`npm install sodium`)
|
||||
|
|
|
@ -61,8 +61,6 @@ exports.DefaultOptions = {
|
|||
* WebSocket options (these are left as snake_case to match the API)
|
||||
* @typedef {Object} WebsocketOptions
|
||||
* @property {number} [large_threshold=250] Number of members in a guild to be considered large
|
||||
* @property {boolean} [compress=false] Whether to compress data sent on the connection
|
||||
* (defaults to `false` for browsers)
|
||||
*/
|
||||
ws: {
|
||||
large_threshold: 250,
|
||||
|
|
Loading…
Reference in a new issue