Package com.viam.sdk.core.webrtc
Class BaseChannel
java.lang.Object
com.viam.sdk.core.webrtc.BaseChannel
- All Implemented Interfaces:
DataChannel.Observer
-
Constructor Summary
ConstructorDescriptionBaseChannel
(RPCPeerConnection rpcConn, Consumer<DataChannel.Buffer> onMessage) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.viam.sdk.core.webrtc.DataChannel.Observer
onBufferedAmountChange
-
Constructor Details
-
BaseChannel
-
-
Method Details
-
ready
-
close
public void close() -
isClosed
public boolean isClosed() -
isClosedReason
-
write
protected void write(com.google.protobuf.MessageLite msg) -
onStateChange
public void onStateChange()- Specified by:
onStateChange
in interfaceDataChannel.Observer
-
onMessage
- Specified by:
onMessage
in interfaceDataChannel.Observer
-