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
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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( ... ) @native() @IntrinsicCandidate()
- 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[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- 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
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- 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
toResponse(implicit trace: Trace): ZIO[R, Nothing, Response]
Creates a new response from a socket handler.
- def toRoutes(implicit trace: Trace): Routes[R, Response]
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def withConfig(config: WebSocketConfig): WebSocketApp[R]