This commit is contained in:
Martin Donnelly 2016-10-05 15:15:06 +01:00
parent 53e5647e32
commit a7863e20b9

View File

@ -1,15 +1,15 @@
var WEBSOCKET = function(model) {
var wsUrl = ['localhost','silvrtree.co.uk'];
//var wsPort = 80;
var wsPort = '9000;
if ('https:' === document.location.protocol) {
wsUrl = 'wss://' + wsUrl[1] + '';
//wsPort = '';
wsPort = '';
} else {
//wsUrl = 'ws://localhost:3001';
wsUrl = 'ws://' + wsUrl[1] + '';
//wsPort = '';
wsPort = '';
}
this.socket = null;