Today
This commit is contained in:
parent
822eaad7b0
commit
7fa773588a
@ -1,14 +1,14 @@
|
|||||||
var WEBSOCKET = function(model) {
|
var WEBSOCKET = function(model) {
|
||||||
|
|
||||||
var wsUrl = ['localhost','mdotserver.mybluemix.net','52.211.111.57'];
|
var wsUrl = ['localhost','silvrtree.co.uk'];
|
||||||
var wsPort = 9000;
|
var wsPort = 9000;
|
||||||
|
|
||||||
if ('https:' === document.location.protocol) {
|
if ('https:' === document.location.protocol) {
|
||||||
wsUrl = 'wss://' + wsUrl[0] + '';
|
wsUrl = 'wss://' + wsUrl[1] + '';
|
||||||
//wsPort = '';
|
//wsPort = '';
|
||||||
} else {
|
} else {
|
||||||
//wsUrl = 'ws://localhost:3001';
|
//wsUrl = 'ws://localhost:3001';
|
||||||
wsUrl = 'ws://' + wsUrl[0] + '';
|
wsUrl = 'ws://' + wsUrl[1] + '';
|
||||||
//wsPort = '';
|
//wsPort = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user