SocketApp

final case class SocketApp[-R](decoder: SocketDecoder, protocol: SocketProtocol, message: Option[ChannelEvent[WebSocketFrame, WebSocketFrame] => ZIO[R, Throwable, Any]])
Companion:
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

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.

def provideEnvironment(env: ZEnvironment[R]): SocketApp[Any]

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.

def toHttp: HttpApp[R, Nothing]

Converts the socket app to a HTTP app.

Converts the socket app to a HTTP app.

def toResponse: ZIO[R, Nothing, Response]

Creates a new response from the socket app.

Creates a new response from the socket app.

Frame decoder configuration

Frame decoder configuration

Server side websocket configuration

Server side websocket configuration

Inherited methods

Inherited from:
Product