TestChannel

zio.http.TestChannel
See theTestChannel companion object

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

Await shutdown of the channel.

Await shutdown of the channel.

Attributes

Read a message from the channel, suspending until the next message is available.

Read a message from the channel, suspending until the next message is available.

Attributes

Send a message to the channel.

Send a message to the channel.

Attributes

Shut down the channel.

Shut down the channel.

Attributes

Inherited methods

final def contramap[In2](f: In2 => WebSocketChannelEvent): Channel[In2, Out]

Constructs a new channel that automatically transforms messages sent to this channel using the specified function.

Constructs a new channel that automatically transforms messages sent to this channel using the specified function.

Attributes

Inherited from:
Channel
final def map[Out2](f: WebSocketChannelEvent => Out2): Channel[In, Out2]

Constructs a new channel that automatically transforms messages received from this channel using the specified function.

Constructs a new channel that automatically transforms messages received from this channel using the specified function.

Attributes

Inherited from:
Channel

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
final def receiveAll[Env](f: WebSocketChannelEvent => ZIO[Env, Throwable, Any]): ZIO[Env, Throwable, Nothing]

Reads all messages from the channel, handling them with the specified function.

Reads all messages from the channel, handling them with the specified function.

Attributes

Inherited from:
Channel