automorph.RpcServer
See theRpcServer companion object
final case class RpcServer[Node, Codec <: MessageCodec[Node], Effect[_], Context](transport: ServerTransport[Effect, Context], rpcProtocol: RpcProtocol[Node, Codec, Context], handler: RequestHandler[Effect, Context], functions: Seq[RpcFunction])
RPC server.
Used to serve remote API requests and invoke bound API methods to process them.
Automatically derives remote API bindings for existing API instances.
Type parameters
- Codec
-
message codec plugin type
- Context
-
RPC message context type
- Effect
-
effect type
- Node
-
message node type
Value parameters
- functions
-
bound RPC functions
- handler
-
RPC request handler
- rpcProtocol
-
RPC protocol plugin
- transport
-
server transport protocol plugin
Attributes
- Constructor
-
Creates a RPC server with specified protocol and transport plugins supporting corresponding message context type.
- Companion
- object
- Graph
-
- Supertypes
Members list
In this article