simplify server websocket configuration
This commit is contained in:
1 parent
31ec784de6
commit
2dfbb522b0
3 files changed
-14
No files matched your search
@@ -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