Authored by zzzzzzz

Merge branch 'hotfix/live' of git.yoho.cn:fe/yohobuywap-node into hotfix/live

... ... @@ -284,9 +284,11 @@ function get_websocket_server(type) {
var arr = data.data[0].split(':');
var ip = arr[0];
var port = arr[1];
var protocol = location.protocol === 'https:' ? 'wss' :'ws'
if (is_live) {
ip = 'ws://' + ip;
ip = protocol + '://' + ip;
link_to_websocket_server(ip, port);
}
}
... ...