RpcHostService

A service whose methods may return other @KsService sub-services.

Extend this instead of RpcService when any @KsMethod returns a type annotated with @KsService. The compiler plugin enforces this at compile time and produces a clear error if the wrong tier is used.

HTTP transports can host RpcHostService instances (sub-service outputs are multiplexed over the same connection), but cannot host RpcBidiService.

Inheritors

Functions

Link copied to clipboard
open suspend override fun close()

Called when the interaction with this object is done and its resources can be cleaned up.