WebSocketApp

zio.http.WebSocketApp
See theWebSocketApp companion object
final case class WebSocketApp[-R](handler: Handler[R, Throwable, WebSocketChannel, Any], customConfig: Option[WebSocketConfig])

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Concrete methods

def connect(url: String, headers: Headers = ...)(implicit trace: Trace): ZIO[R & Client & Scope, Throwable, Response]

Creates a socket connection on the provided URL. Typically used to connect as a client.

Creates a socket connection on the provided URL. Typically used to connect as a client.

Attributes

def connect(url: URL, headers: Headers)(implicit trace: Trace): ZIO[R & Client & Scope, Throwable, Response]
def provideEnvironment(r: ZEnvironment[R])(implicit trace: Trace): WebSocketApp[Any]
def provideLayer[R0](layer: ZLayer[R0, Throwable, R])(implicit trace: Trace): WebSocketApp[R0]
def provideSomeEnvironment[R1](f: (ZEnvironment[R1]) => ZEnvironment[R])(implicit trace: Trace): WebSocketApp[R1]
def provideSomeLayer[R0, R1 : Tag](layer: ZLayer[R0, Throwable, R1])(implicit evidence$1: Tag[R1], ev: (R0 & R1) <:< R, trace: Trace): WebSocketApp[R0]
def tapErrorCauseZIO[R1 <: R](f: (Cause[Throwable]) => ZIO[R1, Throwable, Any])(implicit trace: Trace): WebSocketApp[R1]
def tapErrorZIO[R1 <: R](f: Throwable => ZIO[R1, Throwable, Any])(implicit trace: Trace): WebSocketApp[R1]

Returns a Handler that effectfully peeks at the failure of this SocketApp.

Returns a Handler that effectfully peeks at the failure of this SocketApp.

Attributes

def toResponse(implicit trace: Trace): ZIO[R, Nothing, Response]

Creates a new response from a socket handler.

Creates a new response from a socket handler.

Attributes

def toRoutes(implicit trace: Trace): Routes[R, Response]

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product