We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c214df0 commit bb9cf8eCopy full SHA for bb9cf8e
websocket.js
@@ -12,6 +12,7 @@ if (typeof process !== 'undefined' && process) {
12
module.exports = globalThis.WebSocket
13
} else {
14
// Node.js or Electron browser process
15
+ // eslint-disable-next-line unicorn/no-typeof-undefined
16
if (typeof globalThis.WebSocket === 'undefined') {
17
// Fall back to ws
18
module.exports = require('ws')
0 commit comments