class WebSocketConnection[F[_], Request, Response] extends AnyRef
HOC for websocket connections.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- WebSocketConnection
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new WebSocketConnection(sendRequest: (WebSocket, Request) => Callback, readResponse: (MessageEvent) => F[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 Disconnected(reconnect: Callback, reason: String) extends State with Context with Product with Serializable
- case class Props(websocketURI: String, onOpen: ((Request) => Callback) => Callback, onMessage: ((Request) => Callback, F[Response]) => Callback, 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 Component: 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(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def make(websocketURI: String, onOpen: ((Request) => Callback) => Callback = _ => Callback.empty, onMessage: ((Request) => Callback, F[Response]) => Callback = (_, _) => Callback.empty)(render: (Context) => japgolly.scalajs.react.vdom.html_<^.VdomElement): 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]]]
- 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()
- 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(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- case object Connecting extends State with Context with Product with Serializable
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated