ParaNetService

Description

This service provides another mechanism for registering a listener of network events.

Property

isNetworkSettledUsed to check whether the network initialization is complete

Method

DisconnectDisconnects from the network to design and simulate disconnection to debug the feature of network disconnection and re-connection.
DisableReconnectionDisconnects from the network and re-connects to it.

Message

OnNetworkSettledRegister a callback function to listen for network ready events
OnPlayerLeftRegister a callback function to listen for the character exit events
OnPlayerJoinRegister a callback function to listen for the character join events
OnDisconnectedReceives notifications when the current network is disconnected.
OnReconnectReceives notifications when the network is re-connected successfully.