| Constructor and Description |
|---|
ClientSocket(java.net.URI serverUri,
IPeer peer) |
| Modifier and Type | Method and Description |
|---|---|
void |
onClose(int code,
java.lang.String reason,
boolean remote) |
void |
onError(java.lang.Exception ex) |
void |
onMessage(java.lang.String message)
This method receive the information that was sent by the signaling server.
|
void |
onOpen(org.java_websocket.handshake.ServerHandshake handshakedata) |
org.json.JSONObject |
serializeIceCandidate(org.webrtc.IceCandidate candidate)
This method is useful to serialize an ice candidate object that is supposed to be read
by the signaling server.
|
org.json.JSONObject |
serializeSessionDescription(org.webrtc.SessionDescription session)
This method is useful to serialize serial descriptor object that is supposed to be read
by the signaling server.
|
void |
shareIceCandidate(org.webrtc.IceCandidate candidate)
This method is responsible to send the serialized ice candidate to the signaling server.
|
void |
shareSessionDescription(org.webrtc.SessionDescription session)
This method is responsible to send the serialized session descriptor to the signaling server.
|
close, close, close, closeBlocking, closeConnection, connect, connectBlocking, connectBlocking, getAttachment, getConnection, getConnections, getDraft, getLocalSocketAddress, getLocalSocketAddress, getReadyState, getRemoteSocketAddress, getRemoteSocketAddress, getResourceDescriptor, getSocket, getURI, hasBufferedData, isClosed, isClosing, isConnecting, isFlushAndClose, isOpen, onCloseInitiated, onClosing, onFragment, onMessage, onWebsocketClose, onWebsocketCloseInitiated, onWebsocketClosing, onWebsocketError, onWebsocketMessage, onWebsocketMessage, onWebsocketMessageFragment, onWebsocketOpen, onWriteDemand, reconnect, reconnectBlocking, run, send, send, send, sendFragmentedFrame, sendFrame, sendFrame, sendPing, setAttachment, setProxy, setSocketgetConnectionLostTimeout, isReuseAddr, isTcpNoDelay, setConnectionLostTimeout, setReuseAddr, setTcpNoDelay, startConnectionLostTimer, stopConnectionLostTimerpublic ClientSocket(java.net.URI serverUri,
IPeer peer)
public void onOpen(org.java_websocket.handshake.ServerHandshake handshakedata)
onOpen in class org.java_websocket.client.WebSocketClientpublic void onMessage(java.lang.String message)
onMessage in class org.java_websocket.client.WebSocketClientmessage - the message information as string that contains the serialized message.public void onClose(int code,
java.lang.String reason,
boolean remote)
onClose in class org.java_websocket.client.WebSocketClientpublic void onError(java.lang.Exception ex)
onError in class org.java_websocket.client.WebSocketClientpublic org.json.JSONObject serializeIceCandidate(org.webrtc.IceCandidate candidate)
candidate - candidate that is going to be serializedpublic void shareIceCandidate(org.webrtc.IceCandidate candidate)
shareIceCandidate in interface Emittercandidate - candidate that is going to be shared with the signaling server.public org.json.JSONObject serializeSessionDescription(org.webrtc.SessionDescription session)
session - Session descriptor that is going to be serializedpublic void shareSessionDescription(org.webrtc.SessionDescription session)
shareSessionDescription in interface Emittersession - session descriptor that is going to be shared with the signaling server.