final case class SocketApp[-R](decoder: SocketDecoder = SocketDecoder.default, protocol: SocketProtocol = SocketProtocol.default, message: Option[(ChannelEvent[WebSocketFrame, WebSocketFrame]) => ZIO[R, Throwable, Any]] = None) extends Product with Serializable
- Self Type
- SocketApp[R]
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SocketApp
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new SocketApp(decoder: SocketDecoder = SocketDecoder.default, protocol: SocketProtocol = SocketProtocol.default, message: Option[(ChannelEvent[WebSocketFrame, WebSocketFrame]) => ZIO[R, Throwable, Any]] = None)
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]) @native() @HotSpotIntrinsicCandidate()
- 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 decoder: SocketDecoder
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val message: Option[(ChannelEvent[WebSocketFrame, WebSocketFrame]) => ZIO[R, Throwable, Any]]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val protocol: SocketProtocol
- def provideEnvironment(env: ZEnvironment[R])(implicit trace: Trace): SocketApp[Any]
Provides the socket app with its required environment, which eliminates its dependency on
R
. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toHandler(implicit trace: Trace): Handler[R, Nothing, Any, Response]
Converts the socket app to a HTTP app.
- def toResponse(implicit trace: Trace): ZIO[R, Nothing, Response]
Creates a new response from the socket app.
- def toRoute(implicit trace: Trace): Http[R, Nothing, Any, Response]
- 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 withDecoder(decoder: SocketDecoder): SocketApp[R]
Frame decoder configuration
- def withProtocol(protocol: SocketProtocol): SocketApp[R]
Server side websocket configuration