-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Description
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
- Discord.js could use isomorphic-ws
- Deno users could wait for fix(ext/node): handle 'upgrade' responses denoland/deno#19412, but that would exclude users of other runtimes
Other context
AFCMS
