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
Source
WebSocketApp.scala
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

Source
WebSocketApp.scala
def connect(url: URL, headers: Headers)(implicit trace: Trace): ZIO[R & Client & Scope, Throwable, Response]

Attributes

Source
WebSocketApp.scala
def provideEnvironment(r: ZEnvironment[R])(implicit trace: Trace): WebSocketApp[Any]

Attributes

Source
WebSocketApp.scala
def provideLayer[R0](layer: ZLayer[R0, Throwable, R])(implicit trace: Trace): WebSocketApp[R0]

Attributes

Source
WebSocketApp.scala
def provideSomeEnvironment[R1](f: (ZEnvironment[R1]) => ZEnvironment[R])(implicit trace: Trace): WebSocketApp[R1]

Attributes

Source
WebSocketApp.scala
def provideSomeLayer[R0, R1 : Tag](layer: ZLayer[R0, Throwable, R1])(implicit evidence$1: Tag[R1], ev: (R0 & R1) <:< R, trace: Trace): WebSocketApp[R0]

Attributes

Source
WebSocketApp.scala
def tapErrorCauseZIO[R1 <: R](f: (Cause[Throwable]) => ZIO[R1, Throwable, Any])(implicit trace: Trace): WebSocketApp[R1]

Attributes

Source
WebSocketApp.scala
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

Source
WebSocketApp.scala
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

Source
WebSocketApp.scala
def toRoutes(implicit trace: Trace): Routes[R, Response]

Attributes

Source
WebSocketApp.scala

Attributes

Source
WebSocketApp.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product