mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
Add etf encoding support with erlpack (#943)
* the performance from this is astounding * help uws * save 15 bytes in webpacks * update readme * why is markdown like this * optimizations * Update WebSocketManager.js
This commit is contained in:
committed by
Schuyler Cebulskie
parent
58c7c2e7b8
commit
1e5afc1608
@@ -38,7 +38,7 @@ class RESTMethods {
|
||||
|
||||
getGateway() {
|
||||
return this.rest.makeRequest('get', Constants.Endpoints.gateway, true).then(res => {
|
||||
this.rest.client.ws.gateway = `${res.url}/?encoding=json&v=${Constants.PROTOCOL_VERSION}`;
|
||||
this.rest.client.ws.gateway = `${res.url}/?v=${Constants.PROTOCOL_VERSION}`;
|
||||
return this.rest.client.ws.gateway;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user