mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
Merge branch 'master' of https://github.com/hydrabolt/discord.js
This commit is contained in:
@@ -44,6 +44,7 @@ For production bots, using node-opus should be considered a necessity, especiall
|
||||
- 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 --save`)
|
||||
- [libsodium.js](https://www.npmjs.com/package/libsodium-wrappers) (`npm install libsodium-wrappers --save`)
|
||||
- [uws](https://www.npmjs.com/package/uws) for a much faster WebSocket connection (`npm install uws --save`)
|
||||
|
||||
## Example usage
|
||||
```js
|
||||
|
||||
@@ -48,6 +48,7 @@ For production bots, using node-opus should be considered a necessity, especiall
|
||||
- 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 --save`)
|
||||
- [libsodium.js](https://www.npmjs.com/package/libsodium-wrappers) (`npm install libsodium-wrappers --save`)
|
||||
- [uws](https://www.npmjs.com/package/uws) for a much faster WebSocket connection (`npm install uws --save`)
|
||||
|
||||
## Example usage
|
||||
```js
|
||||
|
||||
@@ -44,7 +44,8 @@
|
||||
"node-opus": "^0.2.5",
|
||||
"opusscript": "^0.0.3",
|
||||
"sodium": "^2.0.1",
|
||||
"libsodium-wrappers": "^0.5.1"
|
||||
"libsodium-wrappers": "^0.5.1",
|
||||
"uws": "^0.14.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^7.0.0",
|
||||
|
||||
@@ -2,7 +2,6 @@ const browser = require('os').platform() === 'browser';
|
||||
const EventEmitter = require('events');
|
||||
const Constants = require('../../util/Constants');
|
||||
const zlib = require('zlib');
|
||||
const util = require('util');
|
||||
const PacketManager = require('./packets/WebSocketPacketManager');
|
||||
const erlpack = (function findErlpack() {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user