JavaWebSocket

class JavaWebSocket(port: Int = 8000, hostName: String = "0.0.0.0", drafts: List<Draft>? = null, val stopMode: ServerConfig.StopMode = ServerConfig.StopMode.Immediate, addShutdownHook: Boolean = true, startupTimeout: Duration = Duration.ofSeconds(5), configFn: WebSocketServer.() -> Unit = { isReuseAddr = true // Set SO_REUSEADDR by default }) : PolyServerConfig

Constructors

Link copied to clipboard
constructor(port: Int = 8000, hostName: String = "0.0.0.0", drafts: List<Draft>? = null, stopMode: ServerConfig.StopMode = ServerConfig.StopMode.Immediate, addShutdownHook: Boolean = true, startupTimeout: Duration = Duration.ofSeconds(5), configFn: WebSocketServer.() -> Unit = { isReuseAddr = true // Set SO_REUSEADDR by default })

Properties

Link copied to clipboard
open override val stopMode: ServerConfig.StopMode

Functions

Link copied to clipboard
open override fun toServer(http: HttpHandler): Http4kServer
open override fun toServer(http: HttpHandler?, ws: WsHandler?, sse: SseHandler?): Http4kServer
Link copied to clipboard
Link copied to clipboard