use ws settings for gateway endpoint

This commit is contained in:
slice 2018-07-21 09:35:43 -07:00
parent 491bdf31df
commit cb70842280
No known key found for this signature in database
GPG Key ID: 1508C19D7436A26D
1 changed files with 3 additions and 1 deletions

View File

@ -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')