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
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
connect(url: String, headers: Headers = Headers.empty): ZIO[R with EventLoopGroup with ChannelFactory 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[_]
- 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()
- val protocol: SocketProtocol
-
def
provideEnvironment(env: ZEnvironment[R]): 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
toHttp: HttpApp[R, Nothing]
Converts the socket app to a HTTP app.
-
def
toResponse: ZIO[R, Nothing, Response]
Creates a new response from the socket app.
-
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
withDecoder(decoder: SocketDecoder): SocketApp[R]
Frame decoder configuration
-
def
withProtocol(protocol: SocketProtocol): SocketApp[R]
Server side websocket configuration