class OkhWebSocketListener extends WebSocketListener
- Alphabetic
- By Inheritance
- OkhWebSocketListener
- WebSocketListener
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new OkhWebSocketListener(handler: PartialFunction[WebSocketEvent, Unit], result: Promise[WebSocket])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
onClosed(websocket: okhttp3.WebSocket, code: Int, reason: String): Unit
Invoked when both peers have indicated that no more messages will be transmitted and the connection has been successfully released.
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.
- Definition Classes
- OkhWebSocketListener → WebSocketListener
-
def
onClosing(websocket: okhttp3.WebSocket, code: Int, reason: String): Unit
Invoked when the peer has indicated that no more incoming messages will be transmitted.
Invoked when the peer has indicated that no more incoming messages will be transmitted.
- Definition Classes
- OkhWebSocketListener → WebSocketListener
-
def
onFailure(websocket: okhttp3.WebSocket, t: Throwable, response: Response): Unit
Invoked when a web socket has been closed due to an error reading from or writing to the network.
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.
- Definition Classes
- OkhWebSocketListener → WebSocketListener
-
def
onMessage(websocket: okhttp3.WebSocket, bytes: ByteString): Unit
Invoked when a binary (type
0x2) message has been received.Invoked when a binary (type
0x2) message has been received.- Definition Classes
- OkhWebSocketListener → WebSocketListener
-
def
onMessage(websocket: okhttp3.WebSocket, text: String): Unit
Invoked when a text (type
0x1) message has been received.Invoked when a text (type
0x1) message has been received.- Definition Classes
- OkhWebSocketListener → WebSocketListener
-
def
onOpen(websocket: okhttp3.WebSocket, resposne: Response): Unit
Invoked when a web socket has been accepted by the remote peer and may begin transmitting messages.
Invoked when a web socket has been accepted by the remote peer and may begin transmitting messages.
- Definition Classes
- OkhWebSocketListener → WebSocketListener
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
var
ws: Option[WebSocket]
- Attributes
- protected