WebSocketSyncBackend

sttp.client4.WebSocketSyncBackend

A GenericBackend which is synchronous (side effects are run directly), and supports web sockets.

Attributes

Graph
Supertypes
trait SyncBackend
trait Backend[Identity]
trait GenericBackend[Identity, WebSockets]
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Inherited methods

def close(): Identity[Unit]

Close the backend, releasing any resources (such as thread or connection pools) that have been allocated when opening or using the backend.

Close the backend, releasing any resources (such as thread or connection pools) that have been allocated when opening or using the backend.

Attributes

Inherited from:
GenericBackend
override def monad: MonadError[Identity]

A monad instance for the F effect type. Allows writing wrapper backends, which map/`flatMap`` over the return value of send.

A monad instance for the F effect type. Allows writing wrapper backends, which map/`flatMap`` over the return value of send.

Attributes

Definition Classes
Inherited from:
SyncBackend
def send[T](request: GenericRequest[T, WebSockets & Effect[Identity]]): Identity[Response[T]]

Send the given request. Should only be used when implementing new backends, or backend wrappers. Client code should instead use the send methods on the request type, e.g. Request.send.

Send the given request. Should only be used when implementing new backends, or backend wrappers. Client code should instead use the send methods on the request type, e.g. Request.send.

Attributes

Inherited from:
GenericBackend