stream

sttp.client4.ws.`package`.stream

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
stream.type

Members list

Value members

Inherited 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

Inherited from:
SttpWebSocketStreamApi
def asWebSocketStream[S](s: Streams[S])(p: s.Pipe[Data[_], WebSocketFrame]): WebSocketStreamResponseAs[Either[String, Unit], S]

Attributes

Inherited from:
SttpWebSocketStreamApi
def asWebSocketStreamAlways[S](s: Streams[S])(p: s.Pipe[Data[_], WebSocketFrame]): WebSocketStreamResponseAs[Unit, S]

Attributes

Inherited from:
SttpWebSocketStreamApi
def fromMetadata[T, S](default: ResponseAs[T], conditions: ConditionalResponseAs[WebSocketStreamResponseAs[T, S]]*): WebSocketStreamResponseAs[T, S]

Attributes

Inherited from:
SttpWebSocketStreamApi