A set of components for creating multiplatform automatic JSON-RPC connectivity with a backend server.
open class CallAgent
An agent responsible for remote calls. |
|
data class Credentials
Username and password credentials. |
|
open class DummyWebSocketSession |
|
object JSON
JSON utility functions |
|
open class KVController
Controller for handling automatic routes. |
|
open class KVRemoteAgent<T : Any> : RemoteAgent
Client side agent for JSON-RPC remote calls. |
|
open actual class KVServiceManager<T : Any>
Multiplatform service manager. |
|
open class KVWebSocketConfig
Automatic websockets configuration. |
|
class LoginService
Form login dispatcher. |
|
external class Object
JavaScript Object type |
|
actual data class Profile
A user profile. |
|
interface RemoteAgent
Interface for client side agent for JSON-RPC remote calls. |
|
abstract class SecurityMgr
Form login dispatcher. |
|
class Socket
A websocket client implementation. |
|
object WebSocketSessionHolder |
class SecurityException : Exception
A security exception. |
|
class SocketClosedException : Throwable
Websocket closed exception class. |
actual typealias Profile = <ERROR CLASS>
A user profile. |
const val HTTP_UNAUTHORIZED: Int
HTTP status unauthorized (401). |
|
val <ERROR CLASS>.injector: <ERROR CLASS> |
|
val injectorKey: <ERROR CLASS> |
|
const val KV_ROUTE_ID_ATTRIBUTE: String |
fun <ERROR CLASS>.addPathPatternsFromServices(services: List<KVServiceManager<*>>): Unit
A function to gather paths for an interceptor from a list of service managers. |
|
fun <T : Any> <ERROR CLASS>.applyRoutes(serviceManager: KVServiceManager<T>): Unit
A function to generate routes based on definitions from the service manager. |
|
fun getWebSocketUrl(url: String): String
Creates a websocket URL from current window.location and given path. |
|
fun <ERROR CLASS>.kvisionInit(): Unit
Initialization function for Jooby server. fun <ERROR CLASS>.kvisionInit(vararg modules: <ERROR CLASS>): Unit
Initialization function for Ktor server. |
|
fun obj(init: dynamic.() -> Unit): dynamic
Helper function for creating JavaScript objects. |
|
suspend fun <RESP> <ERROR CLASS>.withProfile(block: suspend (Profile) -> RESP): RESP suspend fun <RESP> withProfile(block: suspend (Profile) -> RESP): RESP
A helper extension function for processing with authenticated user profile. |