Connection
A bidirectional channel that can both host and call services/sub-services.
(Meaning @KsServices can be used for both input and output of any @KsMethod)
Properties
The maximum ServiceTier this host supports. Defaults to ServiceTier.BIDI (full capability). Implementations with limited transport capabilities should override this to a lower tier.
A human-readable name for this transport, used in error messages when a service exceeds the supportedTier.
Functions
Connects both default channels for a connection (incoming and outgoing).
Raw version of connect, performing the same functionality with SerializedService directly.
Get a SerializedService that is the default on this client (i.e. using DEFAULT channel id). This should act as the root service for most scenarios.
Add a callback to be invoked when SuspendCloseable.close is called.
Register the primary service to be hosted on this communication channel.
Register a service to be hosted on the default channel.
Takes a given channel id and creates a service wrapper to make calls on that channel.