p2p/network.js
function sendPrivatePayment(peer, arrChains) {
	let ws = getPeerWebSocket(peer);
	if (ws)
		return sendPrivatePaymentToWs(ws, arrChains);

	findOutboundPeerOrConnect(peer, function (err, ws) {
		if (!err)
			sendPrivatePaymentToWs(ws, arrChains);
	});
}
function sendPrivatePayment(peer, arrChains) {
	let ws = getPeerWebSocket(peer);
	if (ws)
		return sendPrivatePaymentToWs(ws, arrChains);

	findOutboundPeerOrConnect(peer, function (err, ws) {
		if (!err)
			sendPrivatePaymentToWs(ws, arrChains);
	});
}
function sendPrivatePayment ( peer , arrChains ) { let ws = getPeerWebSocket ( peer ) ; if ( ws ) return sendPrivatePaymentToWs ( ws , arrChains ) ; findOutboundPeerOrConnect ( peer , function ( err , ws ) { if ( ! err ) sendPrivatePaymentToWs ( ws , arrChains ) ; } ) ; }
sends multiple private payloads and their corresponding chains
sends multiple private payloads and their corresponding chains