simplify server websocket configuration
This commit is contained in:
@@ -4,7 +4,6 @@ define([
|
||||
var Config = {};
|
||||
|
||||
Config.getWebsocketURL = function (origin) {
|
||||
if (!ApiConfig.websocketPath) { return ApiConfig.websocketURL; }
|
||||
var path = ApiConfig.websocketPath;
|
||||
if (/^ws{1,2}:\/\//.test(path)) { return path; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user