Refresh connection with server

Hi All,

Could anyone kindly inform me about how to use the smack api to refresh my connection with the server in order to refresh my roster, messages, updates etc ?

Basically I am trying to implement a ‘refresh’ button that will refresh everything in my multi client application

highly appreciated…