From cb708422809fd69885ee26da917315f75952fae7 Mon Sep 17 00:00:00 2001 From: slice Date: Sat, 21 Jul 2018 09:35:43 -0700 Subject: [PATCH] use ws settings for gateway endpoint --- litecord/blueprints/gateway.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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')