sync

sttp.client4.ws.`package`.sync
object sync extends SttpWebSocketSyncApi

Attributes

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

Members list

Value members

Inherited methods

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

Attributes

Inherited from:
SttpWebSocketSyncApi
def asWebSocketAlways[T](f: SyncWebSocket => T): WebSocketResponseAs[Identity, T]

Attributes

Inherited from:
SttpWebSocketSyncApi
def asWebSocketAlwaysUnsafe: WebSocketResponseAs[Identity, SyncWebSocket]

Attributes

Inherited from:
SttpWebSocketSyncApi
def asWebSocketAlwaysWithMetadata[T](f: (SyncWebSocket, ResponseMetadata) => T): WebSocketResponseAs[Identity, T]

Attributes

Inherited from:
SttpWebSocketSyncApi
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

Inherited from:
SttpWebSocketSyncApi
def asWebSocketUnsafe: WebSocketResponseAs[Identity, Either[String, SyncWebSocket]]

Attributes

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

Attributes

Inherited from:
SttpWebSocketSyncApi
def fromMetadata[T](default: ResponseAs[T], conditions: ConditionalResponseAs[WebSocketResponseAs[Identity, T]]*): WebSocketResponseAs[Identity, T]

Attributes

Inherited from:
SttpWebSocketSyncApi