package websocket
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- websocket
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
case class
WebsocketBehavior(onOpen: (Websocket) ⇒ Unit, onMessage: (Websocket, WsMessage) ⇒ Unit, onClose: (ConnectionClosedDetails) ⇒ Unit, onError: (Websocket, Throwable) ⇒ Unit) extends Product with Serializable
- onOpen
An event listener to be called when the connection is opened.
- onMessage
An event listener to be called when a message is received from the server.
- onClose
An event listener to be called when the connection is closed.
- onError
An event listener to be called when an error occurs.
-
case class
WsMessage(value: String) extends Product with Serializable
this message wrapper will become a more robust type in future releases and also includes a context message that can be used for logging.
-
case class
WsResponse(message: String) extends Product with Serializable
WsResponse signifies a successful Websocket client interaction, and also includes a context message that can be used for logging.
Value Members
- object Websocket
- object WebsocketBehavior extends Serializable