public final class OkHttpWebSocket
extends org.jivesoftware.smack.websocket.impl.AbstractWebSocket
| Constructor and Description |
|---|
OkHttpWebSocket(org.jivesoftware.smack.c2s.internal.ModularXmppClientToServerConnectionInternal connectionInternal) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(org.jivesoftware.smack.websocket.rce.WebSocketRemoteConnectionEndpoint endpoint) |
void |
disconnect(int code,
java.lang.String message) |
javax.net.ssl.SSLSession |
getSSLSession() |
boolean |
isConnected() |
boolean |
isConnectionSecure() |
void |
send(org.jivesoftware.smack.packet.TopLevelStreamElement element) |
public OkHttpWebSocket(org.jivesoftware.smack.c2s.internal.ModularXmppClientToServerConnectionInternal connectionInternal)
public void connect(org.jivesoftware.smack.websocket.rce.WebSocketRemoteConnectionEndpoint endpoint)
throws java.lang.InterruptedException,
org.jivesoftware.smack.SmackException,
org.jivesoftware.smack.XMPPException
connect in class org.jivesoftware.smack.websocket.impl.AbstractWebSocketjava.lang.InterruptedExceptionorg.jivesoftware.smack.SmackExceptionorg.jivesoftware.smack.XMPPExceptionpublic void send(org.jivesoftware.smack.packet.TopLevelStreamElement element)
send in class org.jivesoftware.smack.websocket.impl.AbstractWebSocketpublic void disconnect(int code,
java.lang.String message)
disconnect in class org.jivesoftware.smack.websocket.impl.AbstractWebSocketpublic boolean isConnectionSecure()
isConnectionSecure in class org.jivesoftware.smack.websocket.impl.AbstractWebSocketpublic boolean isConnected()
isConnected in class org.jivesoftware.smack.websocket.impl.AbstractWebSocketpublic javax.net.ssl.SSLSession getSSLSession()
getSSLSession in class org.jivesoftware.smack.websocket.impl.AbstractWebSocket