mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 04:53:30 +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:
|
- 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`)
|
- [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`)
|
- [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
|
## Example usage
|
||||||
```js
|
```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:
|
- 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`)
|
- [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`)
|
- [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
|
## Example usage
|
||||||
```js
|
```js
|
||||||
|
|||||||
@@ -44,7 +44,8 @@
|
|||||||
"node-opus": "^0.2.5",
|
"node-opus": "^0.2.5",
|
||||||
"opusscript": "^0.0.3",
|
"opusscript": "^0.0.3",
|
||||||
"sodium": "^2.0.1",
|
"sodium": "^2.0.1",
|
||||||
"libsodium-wrappers": "^0.5.1"
|
"libsodium-wrappers": "^0.5.1",
|
||||||
|
"uws": "^0.14.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^7.0.0",
|
"@types/node": "^7.0.0",
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ const browser = require('os').platform() === 'browser';
|
|||||||
const EventEmitter = require('events');
|
const EventEmitter = require('events');
|
||||||
const Constants = require('../../util/Constants');
|
const Constants = require('../../util/Constants');
|
||||||
const zlib = require('zlib');
|
const zlib = require('zlib');
|
||||||
const util = require('util');
|
|
||||||
const PacketManager = require('./packets/WebSocketPacketManager');
|
const PacketManager = require('./packets/WebSocketPacketManager');
|
||||||
const erlpack = (function findErlpack() {
|
const erlpack = (function findErlpack() {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user