From ccca54c0b1da3c2fa72ee7ae46e2423379da5f00 Mon Sep 17 00:00:00 2001 From: hippoz Date: Mon, 22 Mar 2021 21:01:13 +0200 Subject: [PATCH] quick fix for gateway hostname --- brainlet/app/gatewaytest/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;