diff --git a/brainlet/app/gatewaytest/app.js b/brainlet/app/gatewaytest/app.js index ae83dbd..a62ee0e 100644 --- a/brainlet/app/gatewaytest/app.js +++ b/brainlet/app/gatewaytest/app.js @@ -42,7 +42,7 @@ const getOpcodeByName = (name) => { class GatewayConnection { constructor(token) { - this.ws = new WebSocket("ws://localhost:3005/gateway?v=2"); + this.ws = new WebSocket(`ws://${window.location.hostname}/gateway?v=2`); this.handshakeCompleted = false; this.sessionInformation = null;