AIServer

class AIServer(port: Int = 8081) : NanoWSD

Constructors

Link copied to clipboard
constructor(port: Int = 8081)

Types

Link copied to clipboard
data class ActionResult(val success: Boolean, val message: String, val data: Map<String, Any?>? = null)
Link copied to clipboard
inner class AIWebSocket(handshake: NanoHTTPD.IHTTPSession?) : NanoWSD.WebSocket
Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val hostname: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var serverSocketFactory: NanoHTTPD.ServerSocketFactory?
Link copied to clipboard
open var tempFileManagerFactory: NanoHTTPD.TempFileManagerFactory?

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun makeSecure(sslServerSocketFactory: SSLServerSocketFactory?, sslProtocols: Array<out String?>?)
Link copied to clipboard
open fun serve(session: NanoHTTPD.IHTTPSession?): NanoHTTPD.Response?
open fun serve(uri: String?, method: NanoHTTPD.Method?, headers: Map<String?, String?>?, parms: Map<String?, String?>?, files: Map<String?, String?>?): NanoHTTPD.Response?
Link copied to clipboard
Link copied to clipboard
open fun setAsyncRunner(asyncRunner: NanoHTTPD.AsyncRunner?)
Link copied to clipboard
open fun start()
open fun start(timeout: Int)
open fun start(timeout: Int, daemon: Boolean)
Link copied to clipboard
open fun stop()
Link copied to clipboard