async

sttp.client4.ws.`package`.async
object async extends SttpWebSocketAsyncApi

Attributes

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

Members list

Value members

Inherited methods

def asWebSocket[F[_], T](f: WebSocket[F] => F[T]): WebSocketResponseAs[F, Either[String, T]]

Attributes

Inherited from:
SttpWebSocketAsyncApi
def asWebSocketAlways[F[_], T](f: WebSocket[F] => F[T]): WebSocketResponseAs[F, T]

Attributes

Inherited from:
SttpWebSocketAsyncApi
def asWebSocketAlwaysUnsafe[F[_]]: WebSocketResponseAs[F, WebSocket[F]]

Attributes

Inherited from:
SttpWebSocketAsyncApi
def asWebSocketAlwaysWithMetadata[F[_], T](f: (WebSocket[F], ResponseMetadata) => F[T]): WebSocketResponseAs[F, T]

Attributes

Inherited from:
SttpWebSocketAsyncApi
def asWebSocketEither[F[_], A, B](onError: ResponseAs[A], onSuccess: WebSocketResponseAs[F, B]): WebSocketResponseAs[F, Either[A, B]]

Uses the onSuccess response specification for 101 responses (switching protocols) on JVM/Native, 200 responses on JS. Otherwise, use the onError specification.

Uses the onSuccess response specification for 101 responses (switching protocols) on JVM/Native, 200 responses on JS. Otherwise, use the onError specification.

Attributes

Inherited from:
SttpWebSocketAsyncApi
def asWebSocketUnsafe[F[_]]: WebSocketResponseAs[F, Either[String, WebSocket[F]]]

Attributes

Inherited from:
SttpWebSocketAsyncApi
def asWebSocketWithMetadata[F[_], T](f: (WebSocket[F], ResponseMetadata) => F[T]): WebSocketResponseAs[F, Either[String, T]]

Attributes

Inherited from:
SttpWebSocketAsyncApi
def fromMetadata[F[_], T](default: ResponseAs[T], conditions: ConditionalResponseAs[WebSocketResponseAs[F, T]]*): WebSocketResponseAs[F, T]

Attributes

Inherited from:
SttpWebSocketAsyncApi