Skip to content

Commit

Permalink
refactor(WebSocketManager): use /ws package internally (#9099)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qjuh committed May 1, 2023
1 parent c5b4423 commit a9e0de4
Show file tree
Hide file tree
Showing 11 changed files with 256 additions and 980 deletions.
1 change: 0 additions & 1 deletion packages/discord.js/README.md
Expand Up @@ -39,7 +39,6 @@ pnpm add discord.js
### Optional packages

- [zlib-sync](https://www.npmjs.com/package/zlib-sync) for WebSocket data compression and inflation (`npm install zlib-sync`)
- [erlpack](https://github.com/discord/erlpack) for significantly faster WebSocket data (de)serialisation (`npm install discord/erlpack`)
- [bufferutil](https://www.npmjs.com/package/bufferutil) for a much faster WebSocket connection (`npm install bufferutil`)
- [utf-8-validate](https://www.npmjs.com/package/utf-8-validate) in combination with `bufferutil` for much faster WebSocket processing (`npm install utf-8-validate`)
- [@discordjs/voice](https://www.npmjs.com/package/@discordjs/voice) for interacting with the Discord Voice API (`npm install @discordjs/voice`)
Expand Down
1 change: 1 addition & 0 deletions packages/discord.js/package.json
Expand Up @@ -55,6 +55,7 @@
"@discordjs/formatters": "workspace:^",
"@discordjs/rest": "workspace:^",
"@discordjs/util": "workspace:^",
"@discordjs/ws": "workspace:^",
"@sapphire/snowflake": "^3.4.2",
"@types/ws": "^8.5.4",
"discord-api-types": "^0.37.41",
Expand Down
39 changes: 0 additions & 39 deletions packages/discord.js/src/WebSocket.js

This file was deleted.

0 comments on commit a9e0de4

Please sign in to comment.