This commit is contained in:
Martin Donnelly 2016-10-05 15:12:39 +01:00
parent 822eaad7b0
commit 7fa773588a

View File

@ -1,14 +1,14 @@
var WEBSOCKET = function(model) {
var wsUrl = ['localhost','mdotserver.mybluemix.net','52.211.111.57'];
var wsUrl = ['localhost','silvrtree.co.uk'];
var wsPort = 9000;
if ('https:' === document.location.protocol) {
wsUrl = 'wss://' + wsUrl[0] + '';
wsUrl = 'wss://' + wsUrl[1] + '';
//wsPort = '';
} else {
//wsUrl = 'ws://localhost:3001';
wsUrl = 'ws://' + wsUrl[0] + '';
wsUrl = 'ws://' + wsUrl[1] + '';
//wsPort = '';
}