Luz.Net.WebRtcNetwork.IsAvailable C# (CSharp) Method

IsAvailable() public static method

Will return true if the environment supports the WebRTCNetwork plugin (needs to run in Chrome or Firefox + the javascript file needs to be loaded in the html page!) Keep in mind that it doesn't check if libraries needed for signaling channels are loaded! e.g. it returns true even though firebase or socket.io are missing. Make sure the webpage is setup properly including those in the header tag!
public static IsAvailable ( ) : bool
return bool
        public static bool IsAvailable()
        {
            try
            {
                return UnityWebRtcNetworkIsAvailable();
            }catch(EntryPointNotFoundException)
            {
                //not available at all
                return false;
            }
        }