Class DataChannel

java.lang.Object
com.openfin.desktop.channel.webrtc.DataChannel
All Implemented Interfaces:
dev.onvoid.webrtc.RTCDataChannelObserver

public class DataChannel
extends java.lang.Object
implements dev.onvoid.webrtc.RTCDataChannelObserver
  • Constructor Details

    • DataChannel

      public DataChannel​(dev.onvoid.webrtc.RTCPeerConnection peerConnection, java.lang.String name)
    • DataChannel

      public DataChannel​(dev.onvoid.webrtc.RTCDataChannel dataChannel)
  • Method Details

    • getName

      public java.lang.String getName()
    • getState

      public DataChannelListener.State getState()
    • addChannelListener

      public boolean addChannelListener​(DataChannelListener listener)
    • removeChannelListener

      public boolean removeChannelListener​(DataChannelListener listener)
    • send

      public void send​(java.lang.String s) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • close

      public void close()
    • onBufferedAmountChange

      public void onBufferedAmountChange​(long previousAmount)
      Specified by:
      onBufferedAmountChange in interface dev.onvoid.webrtc.RTCDataChannelObserver
    • onStateChange

      public void onStateChange()
      Specified by:
      onStateChange in interface dev.onvoid.webrtc.RTCDataChannelObserver
    • onMessage

      public void onMessage​(dev.onvoid.webrtc.RTCDataChannelBuffer rtcDataChannelBuffer)
      Specified by:
      onMessage in interface dev.onvoid.webrtc.RTCDataChannelObserver