类 WebSocketListener
java.lang.Object
com.lark.oapi.okhttp.WebSocketListener
- 直接已知子类:
Listener
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidInvoked when both peers have indicated that no more messages will be transmitted and the connection has been successfully released.voidInvoked when the remote peer has indicated that no more incoming messages will be transmitted.voidInvoked when a web socket has been closed due to an error reading from or writing to the network.voidonMessage(WebSocket webSocket, ByteString bytes) Invoked when a binary (type0x2) message has been received.voidInvoked when a text (type0x1) message has been received.voidInvoked when a web socket has been accepted by the remote peer and may begin transmitting messages.
-
构造器详细资料
-
WebSocketListener
public WebSocketListener()
-
-
方法详细资料
-
onOpen
Invoked when a web socket has been accepted by the remote peer and may begin transmitting messages. -
onMessage
Invoked when a text (type0x1) message has been received. -
onMessage
Invoked when a binary (type0x2) message has been received. -
onClosing
Invoked when the remote peer has indicated that no more incoming messages will be transmitted. -
onClosed
Invoked when both peers have indicated that no more messages will be transmitted and the connection has been successfully released. No further calls to this listener will be made. -
onFailure
Invoked when a web socket has been closed due to an error reading from or writing to the network. Both outgoing and incoming messages may have been lost. No further calls to this listener will be made.
-