/// <summary> /// Connects to the given name or address. /// </summary> /// <param name="name"> The address identifying the server </param> /// <returns> /// The connection id. (WebRTCNetwork doesn't allow multiple connections yet! So you can ignore this for now) /// </returns> public ConnectionId Connect(string name) { //until fully supported -> block connecting to others while running a server if (this.mIsServer == true) { UnityEngine.Debug.LogError("Can't create outgoing connections while in server mode!"); return(ConnectionId.INVALID); } ConnectionId id = new ConnectionId(); id.id = (short)CAPI.Unity_WebRtcNetwork_Connect(mReference, name); return(id); }