AppRemoting.Disconnect Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Disconnects the remote app (Client/Server) from the remote player (Client/Server) and stops the active XR session.
public static void Disconnect ();
static member Disconnect : unit -> unit
Public Shared Sub Disconnect ()
Remarks
Disconnects network connection between remote app and remote player, stops ConnectToPlayer, Connect(RemotingConfiguration) and Listen(RemotingListenConfiguration, Action) coroutines. It does not stop StartListeningForPlayer(RemotingListenConfiguration) coroutine, use StopListening() instead. `Disconnect` is not equivalent to the completion of `ConnectToPlayer` coroutine, please use a wrapper coroutine, as explained in ConnectToPlayer to identify completion.