jsonrpclib.fs2.FS2Channel
See theFS2Channel companion object
trait FS2Channel[F[_]] extends Channel[F]
A JSON-RPC communication channel built on top of fs2.Stream
.
FS2Channel[F]
enables streaming JSON-RPC messages into and out of an effectful system. It provides methods to register handlers (Endpoint[F]
) for specific method names.
This is the primary server-side integration point for using JSON-RPC over FS2.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Channel[F]class Objecttrait Matchableclass Any
Members list
Value members
Abstract methods
Concrete methods
def withEndpointStream(endpoint: Endpoint[F])(implicit F: MonadCancelThrow[F]): Stream[F, FS2Channel[F]]
def withEndpointStream(endpoint: Endpoint[F], rest: Endpoint[F]*)(implicit F: MonadCancelThrow[F]): Stream[F, FS2Channel[F]]
def withEndpoints(endpoint: Endpoint[F], rest: Endpoint[F]*)(implicit F: Monad[F]): Resource[F, FS2Channel[F]]
def withEndpointsStream(endpoints: Seq[Endpoint[F]])(implicit F: MonadCancelThrow[F]): Stream[F, FS2Channel[F]]
Inherited and Abstract methods
Attributes
- Inherited from:
- Channel
Attributes
- Inherited from:
- Channel
Attributes
- Inherited from:
- Channel
Attributes
- Inherited from:
- Channel
def stub[In : Encoder, Err : ErrorDecoder, Out : Decoder](method: String): In => F[Either[Err, Out]]
Attributes
- Inherited from:
- Channel
Attributes
- Inherited from:
- Channel
In this article