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.
- Self Type
- WebsocketBehavior
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- WebsocketBehavior
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
WebsocketBehavior(onOpen: (Websocket) ⇒ Unit, onMessage: (Websocket, WsMessage) ⇒ Unit, onClose: (ConnectionClosedDetails) ⇒ Unit, onError: (Websocket, Throwable) ⇒ Unit)
- 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.
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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- val onClose: (ConnectionClosedDetails) ⇒ Unit
- val onError: (Websocket, Throwable) ⇒ Unit
- val onMessage: (Websocket, WsMessage) ⇒ Unit
- val onOpen: (Websocket) ⇒ Unit
- def setOnClose(f: (ConnectionClosedDetails) ⇒ Unit): WebsocketBehavior
- def setOnError(f: (Websocket, Throwable) ⇒ Unit): WebsocketBehavior
- def setOnMessage(f: (Websocket, WsMessage) ⇒ Unit): WebsocketBehavior
- def setOnOpen(f: (Websocket) ⇒ Unit): WebsocketBehavior
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated