final case class WebSocketApp[-R](handler: Handler[R, Throwable, WebSocketChannel, Any], customConfig: Option[WebSocketConfig]) extends Product with Serializable
- Self Type
- WebSocketApp[R]
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- WebSocketApp
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new WebSocketApp(handler: Handler[R, Throwable, WebSocketChannel, Any], customConfig: Option[WebSocketConfig])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def connect(url: URL, headers: Headers)(implicit trace: Trace): ZIO[R with Client with Scope, Throwable, Response]
- def connect(url: String, headers: Headers = Headers.empty)(implicit trace: Trace): ZIO[R with Client with Scope, Throwable, Response]
Creates a socket connection on the provided URL.
Creates a socket connection on the provided URL. Typically used to connect as a client.
- val customConfig: Option[WebSocketConfig]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- val handler: Handler[R, Throwable, WebSocketChannel, Any]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- 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](layer: ZLayer[R0, Throwable, R1])(implicit arg0: Tag[R1], ev: <:<[R0 with R1, R], trace: Trace): WebSocketApp[R0]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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.
- def toHttpAppWS(implicit trace: Trace): HttpApp[R]
- def toResponse(implicit trace: Trace): ZIO[R, Nothing, Response]
Creates a new response from a socket handler.
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withConfig(config: WebSocketConfig): WebSocketApp[R]