class WebSocketConnection[Request, Response] extends AnyRef
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- WebSocketConnection
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new WebSocketConnection(requestToString: (Request) ⇒ String, responseFromString: (String) ⇒ Response)
Type Members
- class Backend extends AnyRef
- case class Connected(send: (Request) ⇒ Callback) extends Context with Product with Serializable
- case class ConnectedState(socket: WebSocket) extends State with Product with Serializable
- sealed trait Context extends AnyRef
- case class Props(websocketURI: String, onMessage: ((Request) ⇒ Callback, Response) ⇒ Callback = (_, _) => Callback.empty, render: (Context) ⇒ japgolly.scalajs.react.vdom.html_<^.VdomElement) extends Product with Serializable
- sealed trait State extends AnyRef
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
- val WebSocket: japgolly.scalajs.react.component.Js.ComponentWithRoot[Props, [-p, +u]japgolly.scalajs.react.CtorType.Props[p, u], UnmountedWithRoot[Props, MountedWithRoot[[A]A, Props, State, Backend, Props, State], Box[Props], MountedWithRoot[[A]A, Box[Props], Box[State], Component[Box[Props], Box[State]] with Vars[Props, State, Backend], Box[Props], Box[State]]], Box[Props], [-p, +u]japgolly.scalajs.react.CtorType.Props[p, u], UnmountedWithRoot[Box[Props], MountedWithRoot[[A]A, Box[Props], Box[State], Component[Box[Props], Box[State]] with Vars[Props, State, Backend], Box[Props], Box[State]], Box[Props], MountedWithRoot[[A]A, Box[Props], Box[State], Component[Box[Props], Box[State]] with Vars[Props, State, Backend], Box[Props], Box[State]]]]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- object Connecting extends Context with Product with Serializable
- object ConnectingState extends State with Product with Serializable
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated