 It is a term of comfort or solace (an equivalent of "be strong – my thoughts are with you"), or (less often) it can serve a similar function to 'kia ora' – an interjection during a speech to indicate support or approval (similar to "hear!hear!