final case class SocketApp[-R](decoder: SocketDecoder, protocol: SocketProtocol, message: Option[ChannelEvent[WebSocketFrame, WebSocketFrame] => ZIO[R, Throwable, Any]])
- Companion:
- object
Value members
Concrete methods
def connect(url: String, headers: Headers): ZIO[R & EventLoopGroup & ChannelFactory & 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.
Provides the socket app with its required environment, which eliminates its
dependency on R.
Provides the socket app with its required environment, which eliminates its
dependency on R.