Add wss connectivity for p2p commander

better-liveGrid-monitor-item
Moe 2023-02-20 10:02:14 -08:00
parent 5d1980f51c
commit 123ee93594
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ function closeResponseTunnel(originalRequestId){
function initialize(){
const selectedP2PServerId = config.p2pServerList[config.p2pHostSelected] ? config.p2pHostSelected : Object.keys(config.p2pServerList)[0]
const p2pServerDetails = config.p2pServerList[selectedP2PServerId]
const selectedHost = 'ws://' + p2pServerDetails.host + ':' + p2pServerDetails.p2pPort
const selectedHost = `${p2pServerDetails.secure ? `wss` : 'ws'}://` + p2pServerDetails.host + ':' + p2pServerDetails.p2pPort
config.selectedHost = selectedHost
startConnection(selectedHost,config.p2pApiKey)
}