#[ws] What are the optional dependencies for web socket optimization?

3 messages · Page 1 of 1 (latest)

mighty quartz
#

The optional dependencies of DJS for web socket optimization are:

  • zlib-sync
  • erlpack
  • bufferutil
  • utf-8-validate

I recently migrated from DJS to discordjs/ws and I'm wondering what are the optional dependencies for ws optimization here.
I installed zlib-sync to have zlib-stream compression, but is it still recommended to have erlpack, bufferutil and utf-8-validate?

Thanks!

little axle
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

sacred forum
#

We no longer support erlpack, so there is no need / benefit to install it.
bufferutil and utf-8-validate however are peer dependencies of the underlying ws package and should still be recommended to use.