Packages

class WebSocketConnection[F[_], Request, Response] extends AnyRef

HOC for websocket connections.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WebSocketConnection
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new WebSocketConnection(sendRequest: (WebSocket, Request) => Callback, readResponse: (MessageEvent) => F[Response])

Type Members

  1. class Backend extends AnyRef
  2. case class Connected(send: (Request) => Callback) extends Context with Product with Serializable
  3. case class ConnectedState(socket: WebSocket) extends State with Product with Serializable
  4. sealed trait Context extends AnyRef
  5. case class Disconnected(reconnect: Callback, reason: String) extends State with Context with Product with Serializable
  6. 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
  7. sealed trait State extends AnyRef

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. 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]]]]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. 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]]]
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  16. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. case object Connecting extends State with Context with Product with Serializable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped