程序包 com.lark.oapi.ws
类 Listener
java.lang.Object
com.lark.oapi.okhttp.WebSocketListener
com.lark.oapi.ws.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.
-
构造器详细资料
-
Listener
-
-
方法详细资料
-
onOpen
从类复制的说明:WebSocketListenerInvoked when a web socket has been accepted by the remote peer and may begin transmitting messages.- 覆盖:
onOpen在类中WebSocketListener
-
onMessage
从类复制的说明:WebSocketListenerInvoked when a text (type0x1) message has been received.- 覆盖:
onMessage在类中WebSocketListener
-
onMessage
从类复制的说明:WebSocketListenerInvoked when a binary (type0x2) message has been received.- 覆盖:
onMessage在类中WebSocketListener
-
onClosing
从类复制的说明:WebSocketListenerInvoked when the remote peer has indicated that no more incoming messages will be transmitted.- 覆盖:
onClosing在类中WebSocketListener
-
onClosed
从类复制的说明:WebSocketListenerInvoked 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.- 覆盖:
onClosed在类中WebSocketListener
-
onFailure
从类复制的说明:WebSocketListenerInvoked 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.- 覆盖:
onFailure在类中WebSocketListener
-