Add wss connectivity for p2p commander
parent
5d1980f51c
commit
123ee93594
|
@ -332,7 +332,7 @@ function closeResponseTunnel(originalRequestId){
|
||||||
function initialize(){
|
function initialize(){
|
||||||
const selectedP2PServerId = config.p2pServerList[config.p2pHostSelected] ? config.p2pHostSelected : Object.keys(config.p2pServerList)[0]
|
const selectedP2PServerId = config.p2pServerList[config.p2pHostSelected] ? config.p2pHostSelected : Object.keys(config.p2pServerList)[0]
|
||||||
const p2pServerDetails = config.p2pServerList[selectedP2PServerId]
|
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
|
config.selectedHost = selectedHost
|
||||||
startConnection(selectedHost,config.p2pApiKey)
|
startConnection(selectedHost,config.p2pApiKey)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue