SttpWebSocketSyncApi

sttp.client4.SttpWebSocketSyncApi

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object sync.type

Members list

Value members

Concrete methods

def asWebSocket[T](f: SyncWebSocket => T): WebSocketResponseAs[Identity, Either[String, T]]
def asWebSocketAlwaysWithMetadata[T](f: (SyncWebSocket, ResponseMetadata) => T): WebSocketResponseAs[Identity, T]
def asWebSocketEither[A, B](onError: ResponseAs[A], onSuccess: WebSocketResponseAs[Identity, B]): WebSocketResponseAs[Identity, 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

def asWebSocketWithMetadata[T](f: (SyncWebSocket, ResponseMetadata) => T): WebSocketResponseAs[Identity, Either[String, T]]