java.io.Closeable, java.lang.AutoCloseablepublic final class RtmSession
extends okhttp3.WebSocketListener
implements java.io.Closeable
| Constructor | Description |
|---|---|
RtmSession(SlackApi slackApi) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
void |
onClosing(okhttp3.WebSocket webSocket,
int code,
java.lang.String reason) |
|
void |
onFailure(okhttp3.WebSocket webSocket,
java.lang.Throwable t,
okhttp3.Response response) |
|
void |
onMessage(okhttp3.WebSocket webSocket,
java.lang.String text) |
|
void |
onOpen(okhttp3.WebSocket webSocket,
okhttp3.Response response) |
|
void |
open(java.lang.String accessToken) |
public RtmSession(SlackApi slackApi)
public void open(java.lang.String accessToken)
throws java.io.IOException
java.io.IOExceptionpublic void onOpen(okhttp3.WebSocket webSocket,
okhttp3.Response response)
onOpen in class okhttp3.WebSocketListenerpublic void onMessage(okhttp3.WebSocket webSocket,
java.lang.String text)
onMessage in class okhttp3.WebSocketListenerpublic void onClosing(okhttp3.WebSocket webSocket,
int code,
java.lang.String reason)
onClosing in class okhttp3.WebSocketListenerpublic void onFailure(okhttp3.WebSocket webSocket,
java.lang.Throwable t,
okhttp3.Response response)
onFailure in class okhttp3.WebSocketListenerpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOExceptionCopyright © 2020. All Rights Reserved.