transfer register and unregister msg to server