public final class OkHttpWebsocket extends AbstractWebsocket
AbstractWebsocket.WebsocketConnectionPhase| Constructor and Description |
|---|
OkHttpWebsocket(org.jivesoftware.smack.c2s.internal.ModularXmppClientToServerConnectionInternal connectionInternal,
XmppWebsocketTransportModule.XmppWebsocketTransport.DiscoveredWebsocketEndpoints discoveredWebsocketEndpoints) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(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) |
getStreamFromOpenElement, isCloseElement, isOpenElementpublic OkHttpWebsocket(org.jivesoftware.smack.c2s.internal.ModularXmppClientToServerConnectionInternal connectionInternal,
XmppWebsocketTransportModule.XmppWebsocketTransport.DiscoveredWebsocketEndpoints discoveredWebsocketEndpoints)
public void connect(WebsocketRemoteConnectionEndpoint endpoint) throws java.lang.InterruptedException, org.jivesoftware.smack.SmackException, org.jivesoftware.smack.XMPPException
connect in class AbstractWebsocketjava.lang.InterruptedExceptionorg.jivesoftware.smack.SmackExceptionorg.jivesoftware.smack.XMPPExceptionpublic void send(org.jivesoftware.smack.packet.TopLevelStreamElement element)
send in class AbstractWebsocketpublic void disconnect(int code,
java.lang.String message)
disconnect in class AbstractWebsocketpublic boolean isConnectionSecure()
isConnectionSecure in class AbstractWebsocketpublic boolean isConnected()
isConnected in class AbstractWebsocketpublic javax.net.ssl.SSLSession getSSLSession()
getSSLSession in class AbstractWebsocket