withService

inline fun <T : Any> RpcClient.withService(): T(source)

Creates an instance of the generated service T, that is able to communicate with a server using this RpcClient.

Return

instance of the generated service.

Parameters

T

the exact type of the service to be created.

See also


fun <T : Any> RpcClient.withService(serviceKType: KType): T(source)

Creates an instance of the generated service T, that is able to communicate with a server using this RpcClient.

Return

instance of the generated service.

Parameters

T

the exact type of the service to be created.

serviceKType

KType of the service to be created.

See also


fun <T : Any> RpcClient.withService(serviceKClass: KClass<T>): T(source)

Creates an instance of the generated service T, that is able to communicate with a server using this RpcClient.

Return

instance of the generated service.

Parameters

T

the exact type of the service to be created.

serviceKClass

KClass of the service to be created.

See also