Пример #1
0
 public static DataChannelState ToNet(this DataChannel.State self)
 {
     if (self == DataChannel.State.Closed)
     {
         return(DataChannelState.Closed);
     }
     if (self == DataChannel.State.Closing)
     {
         return(DataChannelState.Closing);
     }
     if (self == DataChannel.State.Connecting)
     {
         return(DataChannelState.Connecting);
     }
     if (self == DataChannel.State.Open)
     {
         return(DataChannelState.Open);
     }
     throw new ArgumentOutOfRangeException(nameof(self), self, null);
 }
 public void OnStateChange(DataChannel.State state, String dataChannelLabel)
 {
 }