Packages

object Fs2WebSockets

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

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def handleSocketThroughPipe[F[_]](ws: WebSocket[F], sendPongOnPing: Boolean = true)(pipe: Pipe[F, Incoming, WebSocketFrame])(implicit arg0: ConcurrentEffect[F]): F[Unit]

    Same as handleSocketThroughPipeWithFragmentation(), but assumes all frames are no continuations.

    Same as handleSocketThroughPipeWithFragmentation(), but assumes all frames are no continuations.

    F

    the effect type

    ws

    the websocket to handle

    sendPongOnPing

    if true, then automatically handle sending pongs on pings (which are then not passed to the pipe)

    pipe

    the pipe to handle the socket

    returns

    an Unit effect describing the full run of the websocket through the pipe

  10. def handleSocketThroughPipeWithFragmentation[F[_]](ws: WebSocket[F], sendPongOnPing: Boolean = true)(pipe: Pipe[F, Incoming, (WebSocketFrame, Boolean)])(implicit arg0: ConcurrentEffect[F]): F[Unit]

    Handle the websocket through a Pipe which receives the incoming events and produces the messages to be sent to the server.

    Handle the websocket through a Pipe which receives the incoming events and produces the messages to be sent to the server. Not that by the nature of a Pipe, there no need that these two streams are coupled. Just make sure to consume the input as otherwise the receiving buffer might overflow (use Stream.drain if you want to discard). Messages to be sent need to be coupled with a Boolean indicating whether this frame is a continuation, see WebSocket.send().

    F

    the effect type

    ws

    the websocket to handle

    sendPongOnPing

    if true, then automatically handle sending pongs on pings (which are then not passed to the pipe)

    pipe

    the pipe to handle the socket

    returns

    an Unit effect describing the full run of the websocket through the pipe

  11. def handleSocketThroughTextPipe[F[_]](ws: WebSocket[F])(pipe: Pipe[F, String, Either[Close, String]])(implicit arg0: ConcurrentEffect[F]): F[Unit]

    Like handleSocketThroughPipe() but extracts the contents of incoming text messages and wraps outgoing messages in text frames.

    Like handleSocketThroughPipe() but extracts the contents of incoming text messages and wraps outgoing messages in text frames. Helpful for implementing text-only protocols. Note: It always sends a pong for any received ping.

    F

    the effect type

    ws

    the websocket to handle

    pipe

    the pipe to handle the socket

    returns

    an Unit effect describing the full run of the websocket through the pipe

  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped