You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which application or package is this feature request for?
ws
Feature
Currently, Discord.js uses the ws module from npm, which works just fine in Node. However, this module causes issues on alternative JS runtimes like Deno.
Ideal solution or implementation
Discord.js should check to see if the WebSocket constructor is available globally and use that instead of the ws module if it's available.
@jaw0r3k This wouldn't just impact Deno users, this would also allow Bun users to use its WebSocket implementation, which they claim is faster than the ws module currently used by Discord.js. I'd be willing to try to do the work needed to make this happen if it isn't that high of a priority for Discord.js at the moment.
Which application or package is this feature request for?
ws
Feature
Currently, Discord.js uses the
ws
module from npm, which works just fine in Node. However, this module causes issues on alternative JS runtimes like Deno.Ideal solution or implementation
Discord.js should check to see if the WebSocket constructor is available globally and use that instead of the
ws
module if it's available.Alternative solutions or implementations
Other context
The error thrown under Deno:
The text was updated successfully, but these errors were encountered: