SttpWebSocketStreamApi

sttp.client4.SttpWebSocketStreamApi

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object stream

Members list

Value members

Concrete methods

def asWebSocketEither[A, B, S](onError: ResponseAs[A], onSuccess: WebSocketStreamResponseAs[B, S]): WebSocketStreamResponseAs[Either[A, B], S]

Uses the onSuccess response specification for 101 responses (switching protocols), and the onError specification otherwise.

Uses the onSuccess response specification for 101 responses (switching protocols), and the onError specification otherwise.

Attributes

def asWebSocketStream[S](s: Streams[S])(p: s.Pipe[Data[_], WebSocketFrame]): WebSocketStreamResponseAs[Either[String, Unit], S]
def asWebSocketStreamAlways[S](s: Streams[S])(p: s.Pipe[Data[_], WebSocketFrame]): WebSocketStreamResponseAs[Unit, S]
def fromMetadata[T, S](default: ResponseAs[T], conditions: ConditionalResponseAs[WebSocketStreamResponseAs[T, S]]*): WebSocketStreamResponseAs[T, S]