diff --git a/litecord/blueprints/gateway.py b/litecord/blueprints/gateway.py index 05b9cd0..4cade56 100644 --- a/litecord/blueprints/gateway.py +++ b/litecord/blueprints/gateway.py @@ -7,7 +7,9 @@ bp = Blueprint('gateway', __name__) def get_gw(): proto = 'wss://' if app.config['IS_SSL'] else 'ws://' - return f'{proto}{app.config["WEBSERVER_URL"]}/ws' + ws_host = app.config['WS_HOST'] + ws_port = app.config['WS_PORT'] + return f'{proto}{ws_host}:{ws_port}/ws' @bp.route('/gateway')