Since so many idiots keep referencing the websocket code as something that steals your data and sends it to me; let me explain these "programmers" who keep posting it what it actually does.
What was the websocket for? keyword: was
The BetterDiscord websocket was used as a secondary websocket connection to Discord servers in order to catch messages etc.
BdWSocket.prototype.start = function () {
var self = this;
/* $.ajax({