Krosstalk Core

Common Krosstalk APIs that are used be both clients and servers, and everything required to define an expect Krosstalk. Includes Krosstalk, Scope, KrosstalkResult, etc.

Artifact: com.github.rnett.krosstalk:krosstalk

Usually the only source set that needs to explicitly depend on this artifact is the common one, source sets or modules with Krosstalk client or servers will inherit it.

The reason this artifact is separate is to allow for defining a common interface for the client and server. Kotlin's expect-actual mechanism can be used to force client and server methods to have the same signature, and configuration annotations can be placed on the expect methods.

For usage instructions, see the github readme.

Packages

Link copied to clipboard

The main package. See module description.

Link copied to clipboard

Annotations that can be used to configure Krosstalk methods.

Link copied to clipboard
Link copied to clipboard

APIs for KrosstalkResult. See the instructions on error handling.

Link copied to clipboard

Serialization APIs.

Link copied to clipboard

APIs necessary to define serialization plugins. Look at the Kotlinx serialization plugin for examples.

Link copied to clipboard

APIs that need to be accessible to core code, but are only used by servers.

Link copied to clipboard