delete message onDisconnect
add return status in refresh function
add wait in socket refresh