Today
This commit is contained in:
parent
53e5647e32
commit
a7863e20b9
@ -1,15 +1,15 @@
|
|||||||
var WEBSOCKET = function(model) {
|
var WEBSOCKET = function(model) {
|
||||||
|
|
||||||
var wsUrl = ['localhost','silvrtree.co.uk'];
|
var wsUrl = ['localhost','silvrtree.co.uk'];
|
||||||
//var wsPort = 80;
|
var wsPort = '9000;
|
||||||
|
|
||||||
if ('https:' === document.location.protocol) {
|
if ('https:' === document.location.protocol) {
|
||||||
wsUrl = 'wss://' + wsUrl[1] + '';
|
wsUrl = 'wss://' + wsUrl[1] + '';
|
||||||
//wsPort = '';
|
wsPort = '';
|
||||||
} else {
|
} else {
|
||||||
//wsUrl = 'ws://localhost:3001';
|
//wsUrl = 'ws://localhost:3001';
|
||||||
wsUrl = 'ws://' + wsUrl[1] + '';
|
wsUrl = 'ws://' + wsUrl[1] + '';
|
||||||
//wsPort = '';
|
wsPort = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
this.socket = null;
|
this.socket = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user