WsResponse

data class WsResponse(val subprotocol: String? = null, val consumer: WsConsumer) : Function1<Websocket, Unit>

Constructors

Link copied to clipboard
constructor(consumer: WsConsumer)
constructor(subprotocol: String? = null, consumer: WsConsumer)

Properties

Link copied to clipboard
Link copied to clipboard
val subprotocol: String? = null

Functions

Link copied to clipboard
@JvmName(name = "sseHandlerAsServer")
fun SseHandler.asServer(config: PolyServerConfig): Http4kServer
@JvmName(name = "wsHandlerAsServer")
fun WsHandler.asServer(config: PolyServerConfig): Http4kServer
@JvmName(name = "sseConsumerAsServer")
fun SseConsumer.asServer(config: PolyServerConfig): Http4kServer
@JvmName(name = "wsConsumerAsServer")
fun WsConsumer.asServer(config: PolyServerConfig): Http4kServer
Link copied to clipboard
open operator override fun invoke(p1: Websocket)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard