Class PeerjsConnection
java.lang.Object
nl.colorize.multimedialib.renderer.teavm.PeerjsConnection
- All Implemented Interfaces:
PeerConnection
Implements the
PeerConnection
interface in Java, which is then
bridged to the PeerJS implementation in JavaScript via TeaVM.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
PeerjsConnection
-
-
Method Details
-
getId
- Specified by:
getId
in interfacePeerConnection
-
connect
Description copied from interface:PeerConnection
Attempts to connect to the peer with the specified ID. If the connection is successful, messages will be sent to and received from the peer until it disconnects.- Specified by:
connect
in interfacePeerConnection
-
sendMessage
- Specified by:
sendMessage
in interfacePeerConnection
-
getReceivedMessages
- Specified by:
getReceivedMessages
in interfacePeerConnection
-
close
public void close()- Specified by:
close
in interfacePeerConnection
-