Server add Register function and Deregister function, need add receive heartbeat message