Fs2WebSockets

sttp.client3.impl.fs2.Fs2WebSockets$

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def combinedTextFrames[F[_]]: (F, WebSocketFrame) => String
def fromTextPipe[F[_]]: (String => WebSocketFrame) => (F, WebSocketFrame) => WebSocketFrame
def fromTextPipeF[F[_]]: ((F, String) => WebSocketFrame) => (F, WebSocketFrame) => WebSocketFrame
def handleThroughPipe[F[_] : Concurrent](ws: WebSocket[F])(pipe: (F, Data[_]) => WebSocketFrame): F[Unit]

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).

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).

Attributes

F

the effect type

pipe

the pipe to handle the socket

ws

the websocket to handle

Returns:

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