function ioListenerSERVERMessageReceived(payload) {
		//console.log("received SERVER message", payload);
		// Set the message date, as the timing from the server
		// might be different
		const currentDateString = new Date().toJSON();
		const newPayload = { ...payload, createdDateString: currentDateString, updatedDateString: currentDateString };
		addMessageToState(newPayload);
	}
/**
	 * Listener function when receiving new SERVER message
	 * @param {Object} payload Message details
	 */
Listener function when receiving new SERVER message
@param {Object} payload Message details
Listener function when receiving new SERVER message @param { Object } payload Message details
function ioListenerSERVERMessageReceived(payload) {
		const currentDateString = new Date().toJSON();
		const newPayload = { ...payload, createdDateString: currentDateString, updatedDateString: currentDateString };
		addMessageToState(newPayload);
	}
function ioListenerSERVERMessageReceived ( payload ) { const currentDateString = new Date ( ) . toJSON ( ) ; const newPayload = { ... payload , createdDateString : currentDateString , updatedDateString : currentDateString } ; addMessageToState ( newPayload ) ; }
Listener function when receiving new SERVER message
 @param {Object} payload Message details
Listener function when receiving new SERVER message @param { Object } payload Message details
//console.log("received SERVER message", payload); // Set the message date, as the timing from the server // might be different