Skip to content

Commit

Permalink
Drop uws support
Browse files Browse the repository at this point in the history
  • Loading branch information
abalabahaha committed Apr 3, 2021
1 parent ab38c3f commit b459a94
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 1 addition & 4 deletions lib/gateway/Shard.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const ExtendedUser = require("../structures/ExtendedUser");
const User = require("../structures/User");
const Invite = require("../structures/Invite");
const Constants = require("../Constants");

let WebSocket = typeof window !== "undefined" ? require("../util/BrowserWebSocket") : require("ws");

let EventEmitter;
Expand All @@ -36,10 +37,6 @@ try {
} catch(err) { // eslint-disable no-empty
}
}
try {
WebSocket = require("uws");
} catch(err) { // eslint-disable no-empty
}

/**
* Represents a shard
Expand Down
4 changes: 0 additions & 4 deletions lib/voice/VoiceConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ try {
} catch(err) { // eslint-disable no-empty
}
}
try {
WebSocket = require("uws");
} catch(err) { // eslint-disable no-empty
}

const MAX_FRAME_SIZE = 1276 * 3;
const ENCRYPTION_MODE = "xsalsa20_poly1305";
Expand Down

0 comments on commit b459a94

Please sign in to comment.