code: function sendMessage( ws, type, content )
  {
  	let sMessage	= JSON.stringify([type, content]);
  	if ( ws.readyState !== ws.OPEN )
  	{
  		return console.log( "readyState=" + ws.readyState + ' on peer ' + ws.peer + ', will not send ' + sMessage );
  	}
  
  	//	...
  	console.log( "SENDING " + sMessage + " to " + ws.peer );
  	ws.send( sMessage );
  }
docs: general network functions